Documentation ¶
Index ¶
- func CategoryToDist(cat string) relational.Degree
- func DemsAndParsAgree(dems demographics.CsvInput, pars parentage.CsvInput) string
- func RelToLevel(x float64) relational.Degree
- func RmHeader(records [][]string) [][]string
- func RmZeros(vals []float64) []float64
- func StringInSlice(str string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CategoryToDist ¶ added in v0.6.0
func CategoryToDist(cat string) relational.Degree
CategoryToDist converts the category used by ML-Relate to its relational distance. Errors on unrecognized categories.
func DemsAndParsAgree ¶ added in v0.8.0
func DemsAndParsAgree(dems demographics.CsvInput, pars parentage.CsvInput) string
func RelToLevel ¶
func RelToLevel(x float64) relational.Degree
RelToLevel computes the relational distance given the relatedness score
Examples:
relToLevel(0.5) --> First relToLevel(0.25) --> Second relToLevel(0.125) --> Third ... relToLevel(<=0) --> Unrelated
func RmHeader ¶
RmHeader removes the header row of a table TODO: Make checks for header content before removal
func StringInSlice ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.