stats

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CrossCorrelation

func CrossCorrelation(image, feature []float64, zeroPadding int) ([]float64, error)

CrossCorrelation determines the normalized cross-correlation of a feature with an image. Normalization is from -1 to +1, where +1 is high correlation, -1 is high correlation (of inverse), and 0 is no correlation. For autocorrelation, just cross-correlate a signal with itself. Image is the values which are actually recieved/measured. Feature is the values to be searched for in the image. Size must not be greater than size of image. ZeroPadding is the number of zeros to surround the image with (both sides will be padded). Returns a non-nil error in case of failure.

func Mean

func Mean(vals []float64) float64

Mean returns the average of the given values or zero if no values are given.

Types

This section is empty.

Jump to

Keyboard shortcuts

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