package
0.0.0-20180508042940-11479a337f12
Repository: https://github.com/mjibson/go-dsp.git
Documentation: pkg.go.dev

# Functions

ComplexEqual returns true if a and b are very close, else false.
Float64Equal returns true if a and b are very close, else false.
IsPowerOf2 returns true if x is a power of 2, else false.
MakeEmptyMatrix creates an empty Matrix with given dimensions.
MakeMatrix returns a new Matrix populated with x having dimensions dims.
MakeMatrix2 is a helper function to convert a 2-d array to a matrix.
NextPowerOf2 returns the next power of 2 >= x.
PrettyClose returns true if the slices a and b are very close, else false.
PrettyClose2 returns true if the matrixes a and b are very close, else false.
PrettyClose2F returns true if the matrixes a and b are very close, else false.
PrettyCloseC returns true if the slices a and b are very close, else false.
Segment returns segs equal-length slices that are segments of x with noverlap% of overlap.
ToComplex returns the complex equivalent of the real-valued slice.
ToComplex2 returns the complex equivalent of the real-valued matrix.
ZeroPad returns x with zeros appended to the end to the specified length.
ZeroPad2 returns ZeroPad of x, with the length as the next power of 2 >= len(x).
ZeroPadF returns x with zeros appended to the end to the specified length.

# Structs

Matrix is a multidimensional matrix of arbitrary size and dimension.