metrics

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package metrics contains distance metrics (e.g. euclidean distance).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Euclidean

func Euclidean(p1 []int, p2 []int) float64

Euclidean computes the euclidean distance between two ordered sets of instances.

func EuclideanF

func EuclideanF(p []float64, q []float64) float64

func Hamming

func Hamming(p1 []int, p2 []int) int

Euclidean computes the euclidean distance between two ordered sets of instances.

func HammingF

func HammingF(p1 []int, p2 []int) float64

Types

type Metric

type Metric func([]int, []int) float64

type MetricF

type MetricF func([]float64, []float64) float64

type MetricI

type MetricI func([]int, []int) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL