Documentation ¶
Index ¶
- Constants
- Variables
- func DistanceLab(c1, c2 colorful.Color) (float64, error)
- func Float64Dist(a, b []float64) float64
- func GetFeature(filename string) ([]float64, []colorful.Color)
- func GetFeatureFile(r io.Reader) ([]float64, []colorful.Color)
- func HclDist(a, b []colorful.Color) float64
- type SortableStruct
- type TrainingData
Constants ¶
View Source
const BLOCK_SIZE = 15
Variables ¶
View Source
var Analyzer = 16
View Source
var Searcher = 6
Functions ¶
func Float64Dist ¶
Types ¶
type SortableStruct ¶
type SortableStruct struct { Filename string // contains filtered or unexported fields }
func FindKNN ¶
func FindKNN(target []float64, numNeighbor int, db []TrainingData) []SortableStruct
type TrainingData ¶
Click to show internal directories.
Click to hide internal directories.