transform

package
v0.0.0-...-5aa4700 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RampLen = 12000 / 100 // 10ms if 12k samples per second.

Variables

View Source
var RaisedCosine [RampLen]float64 // Lookup table.

Functions

func BuildImage

func BuildImage(in <-chan []float64, imprint string) image.Image

func GoRun

func GoRun(in <-chan int16, cf *Config) <-chan []float64

Types

type Config

type Config struct {
	Rate    int
	Base    int
	Center  int
	Bw      int
	FFTBits int // Log2 of FFT size, maximum 15.
	Overlap float64
}

type Transform

type Transform struct {
	*Config
	Size   int
	Samps  []float64
	Shaped []float64
}

func (*Transform) CopyAndShapeSampsToShaped

func (t *Transform) CopyAndShapeSampsToShaped()

func (*Transform) FFT

func (t *Transform) FFT() []complex128

func (*Transform) Load

func (t *Transform) Load(in <-chan int16) bool

returns true if eof was hit.

func (*Transform) NormalizeFFT

func (t *Transform) NormalizeFFT(fft []complex128) []float64

Extract region of interest and convert to unsigned 16bit magnitudes.

func (*Transform) Shift

func (t *Transform) Shift()

Jump to

Keyboard shortcuts

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