dft

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	CompLogPow bool    `` /* 153-byte string literal not displayed */
	LogMin     float32 `viewif:"CompLogPow" def:"-100" desc:"minimum value a log can produce -- puts a lower limit on log output"`
	LogOffSet  float32 `` /* 174-byte string literal not displayed */
	PrevSmooth float32 `` /* 178-byte string literal not displayed */
	CurSmooth  float32 `inactive:"+" desc:" how much of current power to include"`
}

Dft struct holds the variables for doing a fourier transform

func (*Params) FftReal

func (dft *Params) FftReal(fftCoefs []complex128, in *etensor.Float32)

FftReal

func (*Params) Filter

func (dft *Params) Filter(ch int, step int, windowIn *etensor.Float32, firstStep bool, winSamples int, fftCoefs []complex128, fft *fourier.CmplxFFT, power *etensor.Float32, logPower *etensor.Float32, powerForSegment *etensor.Float32, logPowerForSegment *etensor.Float32)

Filter filters the current window_in input data according to current settings -- called by ProcessStep, but can be called separately

func (*Params) Initialize

func (dft *Params) Initialize(winSamples int)

func (*Params) Power

func (dft *Params) Power(ch, step int, firstStep bool, winSamples int, fftCoefs []complex128, power *etensor.Float32, logPower *etensor.Float32, powerForSegment *etensor.Float32, logPowerForSegment *etensor.Float32)

Power

Jump to

Keyboard shortcuts

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