Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsoluteValue ¶
AbsoluteValue calculates the absolute values between two histograms. D = \sum_{i=1}^{n} \left | hist1_{i} - hist2_{i} \right |
func ChiSquare ¶
chiSquare calculates the distance between two histograms using the chi square statistic. x^2 = \sum_{i=1}^{n}\frac{(hist1_{i} - hist2_{i})^2}{hist1_{i}} References: http://file.scirp.org/Html/8-72278_30995.htm https://www.google.com/patents/WO2007080817A1?cl=en
func EuclideanDistance ¶
EuclideanDistance calculates the euclidean distance between two histograms by the following formula: D = \sqrt{\sum_{i=1}^{n}(hist1_{i} - hist2_{i})^2} Reference: http://www.pbarrett.net/techpapers/euclid.pdf
func NormalizedEuclideanDistance ¶
NormalizedEuclideanDistance calculates the euclidean distance normalized. D = \sqrt{\sum_{i=1}^{n} \frac{(hist1_{i} - hist2_{i})^2}{n}} Reference: http://www.pbarrett.net/techpapers/euclid.pdf
Types ¶
This section is empty.