Versions in this module Expand all Collapse all v0 v0.0.1 Jun 12, 2019 Changes in this version + type Chebyshev struct + func NewChebyshev() *Chebyshev + func (c *Chebyshev) Distance(vectorX *mat.Dense, vectorY *mat.Dense) float64 + type Cosine struct + func NewCosine() *Cosine + func (c *Cosine) Distance(vectorX *mat.Dense, vectorY *mat.Dense) float64 + func (c *Cosine) Dot(vectorX *mat.Dense, vectorY *mat.Dense) float64 + type Cranberra struct + func NewCranberra() *Cranberra + func (c *Cranberra) Distance(vectorX *mat.Dense, vectorY *mat.Dense) float64 + type Euclidean struct + func NewEuclidean() *Euclidean + func (e *Euclidean) Distance(vectorX *mat.Dense, vectorY *mat.Dense) float64 + func (e *Euclidean) InnerProduct(vectorX *mat.Dense, vectorY *mat.Dense) float64 + type Manhattan struct + func NewManhattan() *Manhattan + func (m *Manhattan) Distance(vectorX *mat.Dense, vectorY *mat.Dense) float64 + type PairwiseDistanceFunc interface + Distance func(vectorX *mat.Dense, vectorY *mat.Dense) float64 + type PolyKernel struct + func NewPolyKernel(degree int) *PolyKernel + func (p *PolyKernel) Distance(vectorX *mat.Dense, vectorY *mat.Dense) float64 + func (p *PolyKernel) InnerProduct(vectorX *mat.Dense, vectorY *mat.Dense) float64 + type RBFKernel struct + func NewRBFKernel(gamma float64) *RBFKernel + func (r *RBFKernel) InnerProduct(vectorX *mat.Dense, vectorY *mat.Dense) float64