distances

package
v0.0.0-...-cbd5ca3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package distances contains the distance calculations for several common metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDistance

func GetDistance(setA, setB []float64, metric string) (float64, error)

GetDistance is a function to calculate an unweighted distance metric between 2 sets of floats

func GetWJD

func GetWJD(setA, setB, weightsA, weightsB []float64) (float64, error)

GetWJD is a function to calculate the weighted jaccard distance between two sets <http://theory.stanford.edu/~sergei/papers/soda10-jaccard.pdf>

Types

This section is empty.

Jump to

Keyboard shortcuts

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