freqresponse

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FreqResponse

type FreqResponse struct {
	Frequencies []float64
	Magnitudes  []float64
	Phases      []float64
}

FreqResponse contains frequency, magnitude, and phase.

func (*FreqResponse) MagnitudesDecibel

func (fr *FreqResponse) MagnitudesDecibel() []float64

MagnitudesDecibel returns the magnitude response in decibels (dB).

func (*FreqResponse) PlotMagnitude

func (fr *FreqResponse) PlotMagnitude() (*plot.Plot, error)

PlotMagnitude creates a plot with magnitude vs freq.

func (*FreqResponse) PlotMagnitudeDecibel

func (fr *FreqResponse) PlotMagnitudeDecibel() (*plot.Plot, error)

PlotMagnitudeDecibel creates a plot with magnitude (dB) vs freq.

func (*FreqResponse) PlotPhase

func (fr *FreqResponse) PlotPhase() (*plot.Plot, error)

PlotPhase creates a plot with phase vs freq.

Jump to

Keyboard shortcuts

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