agabor

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conv

func Conv(ch int, gbor Params, segmentSteps int, borderSteps int, rawOut *etensor.Float32, melFilterCount int, gborFilters *etensor.Float32, melData *etensor.Float32)

Conv processes input using filters that operate over an entire segment of samples

Types

type Params

type Params struct {
	On              bool    `` /* 198-byte string literal not displayed */
	TimeSize        int     `` /* 146-byte string literal not displayed */
	FreqSize        int     `` /* 167-byte string literal not displayed */
	TimeStride      int     `viewif:"On" desc:" spacing in the time (horizontal) domain, in terms of steps"`
	FreqStride      int     `viewif:"On" desc:" spacing in the frequency (vertical) domain"`
	WaveLen         float32 `viewif:"On" def:"1.5,2" desc:"wavelength of the sine waves in normalized units"`
	SigmaLen        float32 `` /* 182-byte string literal not displayed */
	SigmaWidth      float32 `` /* 169-byte string literal not displayed */
	HorizSigmaLen   float32 `` /* 165-byte string literal not displayed */
	HorizSigmaWidth float32 `` /* 180-byte string literal not displayed */
	Gain            float32 `` /* 164-byte string literal not displayed */
	NHoriz          int     `` /* 307-byte string literal not displayed */
	NAng            int     `` /* 174-byte string literal not displayed */
	PhaseOffset     float32 `` /* 165-byte string literal not displayed */
	CircleEdge      bool    `` /* 143-byte string literal not displayed */
	NFilters        int     `viewif:"On" desc:" total number of filters = 3 + NHoriz"`
}

Gabor params for auditory gabor filters: 2d Gaussian envelope times a sinusoidal plane wave -- by default produces 2 phase asymmetric edge detector filters -- horizontal tuning is different from V1 version -- has elongated frequency-band specific tuning, not a parallel horizontal tuning -- and has multiple of these

func (*Params) Defaults

func (ga *Params) Defaults()

Initialize initializes the Gabor

func (*Params) RenderFilters

func (ga *Params) RenderFilters(filters *etensor.Float32)

RenderFilters generates filters into the given matrix, which is formatted as: [ga.TimeSize_steps][ga.FreqSize][n_filters]

Jump to

Keyboard shortcuts

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