Documentation
¶
Index ¶
- func CosineSimilarity(x []float64, y []float64) (float64, error)
- func EuclideanDistance(x []float64, y []float64) (float64, error)
- func Intercept(a []float64, b []float64) ([]float64, error)
- func ManhattanDistance(x []float64, y []float64) (float64, error)
- func PearsonCorrelation(a, b []float64) (float64, error)
- type Distance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CosineSimilarity ¶
CosineSimilarity calculates the cosine similarity between two vectors. cos(d_1, d_2) = (d_1 . d_2) / (||d_1|| * ||d_2||)
func PearsonCorrelation ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.