Versions in this module Expand all Collapse all v0 v0.55.0 May 4, 2024 v0.54.0 Apr 4, 2024 Changes in this version + const TEuclidianDistance + type Neighbors struct + func (neighbors *Neighbors) Add(row *tabula.Row, distance float64) + func (neighbors *Neighbors) Contain(row *tabula.Row) (bool, int) + func (neighbors *Neighbors) Distance(idx int) float64 + func (neighbors *Neighbors) Distances() *[]float64 + func (neighbors *Neighbors) Len() int + func (neighbors *Neighbors) Less(i, j int) bool + func (neighbors *Neighbors) Replace(idx int, row *tabula.Row, distance float64) + func (neighbors *Neighbors) Row(idx int) *tabula.Row + func (neighbors *Neighbors) Rows() *[]*tabula.Row + func (neighbors *Neighbors) SelectRange(start, end int) (newn Neighbors) + func (neighbors *Neighbors) SelectWhere(idx int, val string) (newn Neighbors) + func (neighbors *Neighbors) Swap(i, j int) + type Runtime struct + AllNeighbors Neighbors + ClassIndex int + DistanceMethod int + K int + func (in *Runtime) ComputeEuclidianDistance(samples *tabula.Rows, instance *tabula.Row) + func (in *Runtime) FindNeighbors(samples *tabula.Rows, instance *tabula.Row) (kneighbors Neighbors)