Documentation ¶
Index ¶
- Constants
- func CentreStringInColumn(s string, n int) string
- func ContainsInArray(array []int, n int) bool
- func CosineSimilarity(vector1, vector2 []float64, elements int) float64
- func FileExists(filename string) bool
- func GetFieldTypeWithinStruct(a interface{}, n int) string
- func GetMeanValue(data []float64) float64
- func GetMedianValue(data []float64) float64
- func GetModalValue(data []float64) []float64
- func GetNumberOfFieldsInStructure(a interface{}) int
- func GetNumberOfNeighbours() int
- func IsIncompleteRecord(rec diabetesdata.PimaDiabetesRecord) bool
- func LeftAlignStringInColumn(s string, n int) string
- func Percentage(numerator, denominator float64) float64
- func RoundFloat64(f float64, n int) float64
- func SizeOfPimaDiabetesRecord() int
- func StandardDeviation(data []float64) float64
Constants ¶
View Source
const N = 10 // Neighbour count
Sole place of definition now !!!!
Variables ¶
This section is empty.
Functions ¶
func CentreStringInColumn ¶
func ContainsInArray ¶
func CosineSimilarity ¶
general function to produce cosine similarity
func FileExists ¶
func GetFieldTypeWithinStruct ¶
determines the nature of a field within a struct
func GetMeanValue ¶
func GetMedianValue ¶
func GetModalValue ¶
func GetNumberOfFieldsInStructure ¶
func GetNumberOfFieldsInStructure(a interface{}) int
counts the number of fields in a struct definition
func GetNumberOfNeighbours ¶
func GetNumberOfNeighbours() int
func IsIncompleteRecord ¶
func IsIncompleteRecord(rec diabetesdata.PimaDiabetesRecord) bool
func LeftAlignStringInColumn ¶
func Percentage ¶
func RoundFloat64 ¶
func SizeOfPimaDiabetesRecord ¶
func SizeOfPimaDiabetesRecord() int
func StandardDeviation ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.