Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2026 Changes in this version + var ErrNotConverged = errors.New("signal: the Remez exchange did not converge; try a wider transition band") + func Barthann(n int, sym bool) []float64 + func Bartlett(n int, sym bool) []float64 + func Bilinear(b, a []float64, fs float64) ([]float64, []float64, error) + func Blackman(n int, sym bool) []float64 + func BlackmanHarris(n int, sym bool) []float64 + func Bohman(n int, sym bool) []float64 + func Boxcar(n int, sym bool) []float64 + func ButtOrd(wp, ws []float64, gpass, gstop float64, analog bool, fs float64) (int, []float64, error) + func CSD(x, y []float64, o *SpectralOptions) (f []float64, p []complex128, err error) + func Cheb1Ord(wp, ws []float64, gpass, gstop float64, analog bool, fs float64) (int, []float64, error) + func Cheb2Ord(wp, ws []float64, gpass, gstop float64, analog bool, fs float64) (int, []float64, error) + func CheckCOLA(win []float64, nperseg, noverlap int, tol float64) (bool, error) + func CheckNOLA(win []float64, nperseg, noverlap int, tol float64) (bool, error) + func Coherence(x, y []float64, o *SpectralOptions) (f, c []float64, err error) + func Convolve(a, b []float64, mode ConvMode, method ConvMethod) ([]float64, error) + func Correlate(a, b []float64, mode ConvMode, method ConvMethod) ([]float64, error) + func CorrelationLags(n1, n2 int, mode ConvMode) ([]int, error) + func Cosine(n int, sym bool) []float64 + func DPSS(m int, nw float64, kmax int, sym bool, norm DPSSNorm) (windows [][]float64, ratios []float64, err error) + func Decimate(x []float64, q int, o *DecimateOptions) ([]float64, error) + func Deconvolve(signal, divisor []float64) (quot, rem []float64, err error) + func Detrend(x []float64, t DetrendType, bp []int) ([]float64, error) + func EllipOrd(wp, ws []float64, gpass, gstop float64, analog bool, fs float64) (int, []float64, error) + func Ellipj(u, m float64) (sn, cn, dn float64) + func FFTConvolve(a, b []float64, mode ConvMode) ([]float64, error) + func FiltFilt(b, a, x []float64, o *FiltFiltOptions) ([]float64, error) + func Firls(numtaps int, bands, desired, weight []float64, fs float64) ([]float64, error) + func Firwin(numtaps int, cutoff []float64, o *FirwinOptions) ([]float64, error) + func Firwin2(numtaps int, freq, gain []float64, o *Firwin2Options) ([]float64, error) + func Flattop(n int, sym bool) []float64 + func Freqs(b, a []float64, o *FreqOptions) (w []float64, h []complex128, err error) + func FreqsZPK(s ZPK, o *FreqOptions) (w []float64, h []complex128, err error) + func Freqz(b, a []float64, o *FreqOptions) (w []float64, h []complex128, err error) + func FreqzZPK(s ZPK, o *FreqOptions) (w []float64, h []complex128, err error) + func GetWindow(name string, n int, fftbins bool, params ...float64) ([]float64, error) + func GroupDelay(b, a []float64, o *FreqOptions) (w, gd []float64, err error) + func Hamming(n int, sym bool) []float64 + func Hann(n int, sym bool) []float64 + func Hilbert(x []float64, n int) ([]complex128, error) + func IIRNotch(w0, q, fs float64) (b, a []float64, err error) + func IIRPeak(w0, q, fs float64) (b, a []float64, err error) + func ISTFT(z [][]complex128, o *ISTFTOptions) (t, x []float64, err error) + func KaiserAtten(numtaps int, width float64) float64 + func KaiserBeta(a float64) float64 + func KaiserOrd(ripple, width float64) (numtaps int, beta float64, err error) + func LFilter(b, a, x, zi []float64) (y, zf []float64, err error) + func LFilterIC(b, a, y, x []float64) ([]float64, error) + func LFilterZI(b, a []float64) ([]float64, error) + func LP2BP(b, a []float64, wo, bw float64) ([]float64, []float64, error) + func LP2BS(b, a []float64, wo, bw float64) ([]float64, []float64, error) + func LP2HP(b, a []float64, wo float64) ([]float64, []float64, error) + func LP2LP(b, a []float64, wo float64) ([]float64, []float64, error) + func Lombscargle(x, y, freqs []float64, o *LombOptions) ([]float64, error) + func LombscargleAmplitude(x, y, freqs []float64, o *LombOptions) ([]complex128, error) + func Normalize(b, a []float64) ([]float64, []float64, error) + func Nuttall(n int, sym bool) []float64 + func OAConvolve(a, b []float64, mode ConvMode) ([]float64, error) + func Overlap(n int) *int + func Parzen(n int, sym bool) []float64 + func PeakProminences(x []float64, peaks []int, wlen float64) (prom []float64, left, right []int, err error) + func PeakWidths(x []float64, peaks []int, relHeight float64, prom []float64, left, right []int) (widths, heights, leftIP, rightIP []float64, err error) + func Periodogram(x []float64, o *SpectralOptions) (f, p []float64, err error) + func Remez(numtaps int, bands, desired []float64, o *RemezOptions) ([]float64, error) + func Resample(x []float64, num int, o *ResampleOptions) ([]float64, error) + func ResamplePoly(x []float64, up, down int, o *ResamplePolyOptions) ([]float64, error) + func Roots(p []float64) ([]complex128, error) + func SOS2TF(sos SOS) (b, a []float64) + func SOSFilt(sos SOS, x []float64, zi [][2]float64) (y []float64, zf [][2]float64, err error) + func SOSFiltFilt(sos SOS, x []float64, o *FiltFiltOptions) ([]float64, error) + func SOSFiltZI(sos SOS) ([][2]float64, error) + func SOSFreqz(sos SOS, o *FreqOptions) (w []float64, h []complex128, err error) + func STFT(x []float64, o *STFTOptions) (f, t []float64, z [][]complex128, err error) + func Spectrogram(x []float64, o *SpectralOptions, mode SpectrogramMode) (f, t []float64, s [][]float64, err error) + func Triang(n int, sym bool) []float64 + func Upfirdn(h, x []float64, up, down int, mode PadMode, cval float64) ([]float64, error) + func Welch(x []float64, o *SpectralOptions) (f, p []float64, err error) + func ZPK2TF(s ZPK) (b, a []float64, err error) + type Average int + const AverageMean + const AverageMedian + type BandType int + const Bandpass + const Bandstop + const Highpass + const Lowpass + type BesselNorm int + const BesselDelay + const BesselMag + const BesselPhase + type ConvMethod int + const ConvAuto + const ConvDirect + const ConvFFT + func ChooseConvMethod(n1, n2 int, mode ConvMode) ConvMethod + type ConvMode int + const ConvFull + const ConvSame + const ConvValid + type DPSSNorm int + const DPSSApproximate + const DPSSNorm2 + const DPSSSubsample + type DecimateOptions struct + FIR bool + N int + NoZeroPhase bool + type DetrendType int + const DetrendConstant + const DetrendDefault + const DetrendLinear + const DetrendNone + type FiltFiltOptions struct + IRLen int + Method FiltMethod + PadLen int + PadType PadType + type FiltMethod int + const FiltGust + const FiltPad + type FilterType int + const Bessel + const Butterworth + const Chebyshev1 + const Chebyshev2 + const Elliptic + type FindPeaksOptions struct + Distance float64 + Height *Interval + PlateauSize *Interval + Prominence *Interval + RelHeight float64 + Threshold *Interval + Width *Interval + Wlen float64 + type FirPass int + const FirBandpass + const FirBandstop + const FirHighpass + const FirLowpass + const FirPassZeroFalse + const FirPassZeroTrue + type Firwin2Options struct + Antisymmetric bool + Fs float64 + Nfreqs int + NoWindow bool + Window Window + type FirwinOptions struct + Fs float64 + NoScale bool + PassZero FirPass + Width float64 + Window Window + type FreqOptions struct + Fs float64 + IncludeNyquist bool + N int + W []float64 + Whole bool + type IIROptions struct + Analog bool + Bessel BesselNorm + Fs float64 + Rp float64 + Rs float64 + type ISTFTOptions struct + NoBoundary bool + TwoSidedInput bool + type Interval struct + HasMax bool + HasMin bool + Max float64 + Min float64 + func AtLeast(v float64) *Interval + func AtMost(v float64) *Interval + func Between(lo, hi float64) *Interval + type LombOptions struct + FloatingMean bool + Normalize bool + Weights []float64 + type PadMode string + const PadModeAntireflect + const PadModeAntisymmetric + const PadModeConstant + const PadModeEdge + const PadModeLine + const PadModeReflect + const PadModeSmooth + const PadModeSymmetric + const PadModeWrap + type PadType int + const PadConstant + const PadEven + const PadNone + const PadOdd + type Pairing int + const PairKeepOdd + const PairMinimal + const PairNearest + type PeakProperties struct + LeftBases []int + LeftEdges []int + LeftIPs []float64 + LeftThresholds []float64 + PeakHeights []float64 + PlateauSizes []int + Prominences []float64 + RightBases []int + RightEdges []int + RightIPs []float64 + RightThresholds []float64 + WidthHeights []float64 + Widths []float64 + func FindPeaks(x []float64, o *FindPeaksOptions) (peaks []int, props PeakProperties, err error) + type RemezOptions struct + Fs float64 + GridDensity int + MaxIter int + Type RemezType + Weight []float64 + type RemezType int + const RemezBandpass + const RemezDifferentiator + const RemezHilbert + type ResampleOptions struct + Window Window + WindowFreq []float64 + type ResamplePolyOptions struct + Cval float64 + PadType string + Taps []float64 + Window Window + type SOS [][6]float64 + func TF2SOS(b, a []float64, pairing Pairing, analog bool) (SOS, error) + func ZPK2SOS(s ZPK, pairing Pairing, analog bool) (_ SOS, err error) + type STFTOptions struct + Boundary string + NoBoundary bool + NoPad bool + type Scaling int + const ScaleDefault + const ScaleDensity + const ScaleSpectrum + type SpectralOptions struct + Average Average + Detrend DetrendType + Fs float64 + Nfft int + Noverlap *int + Nperseg int + Scaling Scaling + TwoSided bool + Window Window + WindowTaps []float64 + type SpectrogramMode int + const SpecAngle + const SpecMagnitude + const SpecPSD + const SpecPhase + type Window func(n int, sym bool) []float64 + func Chebwin(at float64) Window + func Exponential(center, tau float64) Window + func Gaussian(std float64) Window + func GeneralCosine(a []float64) Window + func GeneralGaussian(p, sig float64) Window + func GeneralHamming(alpha float64) Window + func Kaiser(beta float64) Window + func Tukey(alpha float64) Window + type ZPK struct + K float64 + P []complex128 + Z []complex128 + func BesselAP(n int, norm BesselNorm) (ZPK, error) + func BesselFilter(n int, wn []float64, bt BandType, norm BesselNorm, o *IIROptions) (ZPK, error) + func BilinearZPK(s ZPK, fs float64) (ZPK, error) + func ButtAP(n int) (ZPK, error) + func Butter(n int, wn []float64, bt BandType, o *IIROptions) (ZPK, error) + func Cheb1AP(n int, rp float64) (ZPK, error) + func Cheb2AP(n int, rs float64) (ZPK, error) + func Cheby1(n int, rp float64, wn []float64, bt BandType, o *IIROptions) (ZPK, error) + func Cheby2(n int, rs float64, wn []float64, bt BandType, o *IIROptions) (ZPK, error) + func Ellip(n int, rp, rs float64, wn []float64, bt BandType, o *IIROptions) (ZPK, error) + func EllipAP(n int, rp, rs float64) (ZPK, error) + func IIRDesign(wp, ws []float64, gpass, gstop float64, ft FilterType, o *IIROptions) (ZPK, error) + func IIRFilter(n int, wn []float64, bt BandType, ft FilterType, o *IIROptions) (ZPK, error) + func LP2BPZPK(s ZPK, wo, bw float64) (ZPK, error) + func LP2BSZPK(s ZPK, wo, bw float64) (ZPK, error) + func LP2HPZPK(s ZPK, wo float64) (ZPK, error) + func LP2LPZPK(s ZPK, wo float64) (ZPK, error) + func SOS2ZPK(sos SOS) (ZPK, error) + func TF2ZPK(b, a []float64) (ZPK, error) + func (z ZPK) SOS(analog bool) (SOS, error) + func (z ZPK) TF() (b, a []float64, err error)