package
Version:
v0.4.2
Opens a new window with list of versions in this module.
Published: Apr 18, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package siggen provides basic timeseries generation wrappers
-
func Add(sig ...[]float64) []float64
-
func Append(in []float64, sig ...[]float64) []float64
-
func Line(slope, offset float64, n int) []float64
-
func Noise(amp float64, n int) []float64
-
func Rect(amp, offset, width, sampleRate, durationSec float64) []float64
-
func Sawtooth(amp, freq, phase, offset, sampleRate, durationSec float64) []float64
-
func Sin(amp, freq, phase, offset, sampleRate, durationSec float64) []float64
-
func Square(amp, freq, phase, offset, sampleRate, durationSec float64) []float64
Add adds one or more slices of floats together returning a signal
with a length equal to the longest signal passed in
Append adds a series of signals to the input signal extending the length
Line creates a line given a slope, offset and number of data points
Noise creates a noise signal centered around 0
func Rect(amp, offset, width, sampleRate, durationSec float64) []float64
Rect creates a rectangular signal with the specified
width and offset from center.
func Sawtooth(amp, freq, phase, offset, sampleRate, durationSec float64) []float64
Sawtooth produces a sawtooth wave with a given amplitude,
frequency, phase, sampleRate and duration in seconds
func Sin(amp, freq, phase, offset, sampleRate, durationSec float64) []float64
Sin produces a sin wave with a given amplitude, frequency,
phase, sampleRate and duration in seconds
func Square(amp, freq, phase, offset, sampleRate, durationSec float64) []float64
Square produces a square wave with a given amplitude,
frequency, phase, sampleRate and duration in seconds
Source Files
¶
Click to show internal directories.
Click to hide internal directories.