dft

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 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     float64 `viewif:"CompLogPow" def:"-100" desc:"minimum value a log can produce -- puts a lower limit on log output"`
	LogOffSet  float64 `` /* 174-byte string literal not displayed */
	PrevSmooth float64 `` /* 178-byte string literal not displayed */
	CurSmooth  float64 `inactive:"+" desc:" how much of current power to include"`
}

Dft struct holds the variables for doing a fourier transform

func (*Params) Defaults added in v1.8.0

func (dft *Params) Defaults()

func (*Params) FftReal

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

FftReal

func (*Params) Filter

func (dft *Params) Filter(step int, windowIn *etensor.Float64, winSamples int, power *etensor.Float64, logPower *etensor.Float64, powerForSegment *etensor.Float64, logPowerForSegment *etensor.Float64)

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

func (*Params) Power

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

Power

Jump to

Keyboard shortcuts

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