Documentation
¶
Overview ¶
Package numeric provides deterministic numeric, statistical, and vector helpers.
Index ¶
- func Clamp(value, low, high float64) (float64, error)
- func Correlation(x, y []float64, method string) (float64, error)
- func Covariance(x, y []float64, method string) (float64, error)
- func Distance(x, y any, method string) (float64, error)
- func Dot(x, y []float64) (float64, error)
- func Exp(value float64) (float64, error)
- func Log(value float64, base ...float64) (float64, error)
- func Norm(values []float64) (float64, error)
- func Normalize(values []float64) ([]float64, error)
- func Options() []exprlib.Option
- func Quantile(values []float64, p float64) (float64, error)
- func RoundTo(value float64, places int) (float64, error)
- func Similarity(x, y any, method string) (float64, error)
- func Sqrt(value float64) (float64, error)
- func StdDev(values []float64, method string) (float64, error)
- func Variance(values []float64, method string) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Correlation ¶
Correlation returns Pearson or Spearman correlation for paired values.
func Covariance ¶
Covariance returns population or sample covariance for paired values.
func Similarity ¶
Similarity measures vectors, sets, or strings with the selected method.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.