support

package
v0.0.0-...-2310ea4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const N = 10 // Neighbour count

Sole place of definition now !!!!

Variables

This section is empty.

Functions

func CentreStringInColumn

func CentreStringInColumn(s string, n int) string

func ContainsInArray

func ContainsInArray(array []int, n int) bool

func CosineSimilarity

func CosineSimilarity(vector1, vector2 []float64, elements int) float64

general function to produce cosine similarity

func FileExists

func FileExists(filename string) bool

func GetFieldTypeWithinStruct

func GetFieldTypeWithinStruct(a interface{}, n int) string

determines the nature of a field within a struct

func GetMeanValue

func GetMeanValue(data []float64) float64

func GetMedianValue

func GetMedianValue(data []float64) float64

func GetModalValue

func GetModalValue(data []float64) []float64

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 LeftAlignStringInColumn(s string, n int) string

func Percentage

func Percentage(numerator, denominator float64) float64

func RoundFloat64

func RoundFloat64(f float64, n int) float64

func SizeOfPimaDiabetesRecord

func SizeOfPimaDiabetesRecord() int

func StandardDeviation

func StandardDeviation(data []float64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL