Documentation
¶
Index ¶
- func AverageScore(a *Vector, set []*Vector) float64
- func EuclideanDistance(a, b *Vector) float64
- func FFT(x []float64) []complex128
- func FFTMag(x []float64) []float64
- func Hann(N int) []float64
- func HighScore(a *Vector, set []*Vector) float64
- func MinimumEuclideanDistance(a *Vector, set []*Vector) float64
- func NormalizedFFT(x []float64) []float64
- func Similarity(a, b *Vector) float64
- func Triangle(N int) []float64
- type Vector
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AverageScore ¶
func EuclideanDistance ¶
func FFT ¶
func FFT(x []float64) []complex128
func NormalizedFFT ¶
func Similarity ¶
Perform cosine similary between the two vectors
Types ¶
type Window ¶
type Window struct {
Data []float64 // a single channel of samples
}
func MakeWindows ¶
Generate windows of the specified width at 50% overlap. Windows have a Hann function applied. Assumes the WAV is valid and single channel.
Click to show internal directories.
Click to hide internal directories.