mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-25 13:48:49 +08:00
11 lines
257 B
Go
11 lines
257 B
Go
// Package pairwise implements utilities to evaluate pairwise distances or inner product (via kernel).
|
|
package pairwise
|
|
|
|
import (
|
|
"gonum.org/v1/gonum/mat"
|
|
)
|
|
|
|
type PairwiseDistanceFunc interface {
|
|
Distance(vectorX *mat.Dense, vectorY *mat.Dense) float64
|
|
}
|