SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › signal-processing

Package signal-processing

This package contains 15 source unit(s) defining 15 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

SLSignalComplex #sleela 2.5 (lib/signal-processing/SLSignalComplex.sleela)

SLSignalComplex class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
redouble reNo description in source.
imdouble imNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double realPart, double imaginaryPart)No description in source.
finiteboolean finite()No description in source.
magnitudedouble magnitude()No description in source.

SLSignalComplexSample #sleela 2.5 (lib/signal-processing/SLSignalComplexSample.sleela)

SLSignalComplexSample class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
redouble reNo description in source.
imdouble imNo description in source.
previousSLSignalComplexSample previousNo description in source.
nextSLSignalComplexSample nextNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double realPart, double imaginaryPart)No description in source.

SLSignalComplexSeries #sleela 2.5 (lib/signal-processing/SLSignalComplexSeries.sleela)

SLSignalComplexSeries class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
headSLSignalComplexSample headNo description in source.
tailSLSignalComplexSample tailNo description in source.
countint countNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
clearvoid clear()No description in source.
sizeint size()No description in source.
emptyboolean empty()No description in source.
appendPartsboolean appendParts(double realPart, double imaginaryPart)No description in source.
appendValueboolean appendValue(SLSignalComplex value)No description in source.
sampleAtSLSignalComplexSample sampleAt(int index)No description in source.
valuesFiniteboolean valuesFinite()No description in source.
appendSeriesboolean appendSeries(SLSignalComplexSeries source)No description in source.
cloneSeriesSLSignalComplexSeries cloneSeries()No description in source.
copyValuesFromboolean copyValuesFrom(SLSignalComplexSeries source)No description in source.

SLSignalDFT #sleela 2.5 (lib/signal-processing/SLSignalDFT.sleela)

SLSignalDFT class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
transformint transform(SLSignalComplexSeries input, SLSignalComplexSeries output,No description in source.
forwardint forward(SLSignalComplexSeries input, SLSignalComplexSeries output)No description in source.
inverseint inverse(SLSignalComplexSeries input, SLSignalComplexSeries output)No description in source.

SLSignalFFT #sleela 2.5 (lib/signal-processing/SLSignalFFT.sleela)

SLSignalFFT class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isPowerOfTwoboolean isPowerOfTwo(int length)No description in source.
transformint transform(SLSignalComplexSeries data, boolean inverse)No description in source.
forwardint forward(SLSignalComplexSeries data)No description in source.
inverseint inverse(SLSignalComplexSeries data)No description in source.
recurseSLSignalComplexSeries recurse(SLSignalComplexSeries input, boolean inverse)No description in source.

SLSignalFilters #sleela 2.5 (lib/signal-processing/SLSignalFilters.sleela)

SLSignalFilters class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
movingAverageint movingAverage(SLSignalSeries input, int window, SLSignalSeries output)No description in source.
convolveint convolve(SLSignalSeries input, SLSignalSeries kernel, SLSignalSeries output)No description in source.
hannWindowint hannWindow(int length, SLSignalSeries output)No description in source.

SLSignalMagnitudeSpectrum #sleela 2.5 (lib/signal-processing/SLSignalMagnitudeSpectrum.sleela)

SLSignalMagnitudeSpectrum class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
computeint compute(SLSignalComplexSeries input, SLSignalSeries output)No description in source.

SLSignalProcessing #sleela 2.5 (lib/signal-processing/SLSignalProcessing.sleela)

SLSignalProcessing class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
versionString version()No description in source.
statusTextString statusText(int code)No description in source.
meanint mean(SLSignalSeries input, SLSignalScalar output)No description in source.
rmsint rms(SLSignalSeries input, SLSignalScalar output)No description in source.
movingAverageint movingAverage(SLSignalSeries input, int window, SLSignalSeries output)No description in source.
convolveint convolve(SLSignalSeries input, SLSignalSeries kernel, SLSignalSeries output)No description in source.
hannWindowint hannWindow(int length, SLSignalSeries output)No description in source.
dftint dft(SLSignalComplexSeries input, SLSignalComplexSeries output, boolean inverse)No description in source.
fftint fft(SLSignalComplexSeries data, boolean inverse)No description in source.
magnitudeSpectrumint magnitudeSpectrum(SLSignalComplexSeries input, SLSignalSeries output)No description in source.

SLSignalProcessingDemo #sleela 2.5 (lib/signal-processing/example/SLSignalProcessingDemo.sleela)

SLSignalProcessingDemo class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
printSeriesvoid printSeries(String label, SLSignalSeries samples)No description in source.
mainvoid main()No description in source.

SLSignalProcessingSmoke #sleela 2.5 (lib/signal-processing/tests/SLSignalProcessingSmoke.sleela)

SLSignalProcessingSmoke class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
checkvoid check(String name, boolean passed)No description in source.
nearvoid near(String name, double actual, double expected, double tolerance)No description in source.
mainvoid main()No description in source.

SLSignalProcessingStatus #sleela 2.5 (lib/signal-processing/SLSignalProcessingStatus.sleela)

SLSignalProcessingStatus class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
OKstatic final int OK = 0No description in source.
ERR_INVALIDstatic final int ERR_INVALID = -1No description in source.
ERR_CAPACITYstatic final int ERR_CAPACITY = -2No description in source.
ERR_ALLOCstatic final int ERR_ALLOC = -3No description in source.
ERR_SIZEstatic final int ERR_SIZE = -4No description in source.
ERR_NUMERICstatic final int ERR_NUMERIC = -5No description in source.
VERSIONstatic final String VERSION = "1.0.0"No description in source.
MAX_FINITEstatic final double MAX_FINITE = 1.7976931348623157E308No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
versionstatic String version()No description in source.
textstatic String text(int code)No description in source.
isFinitestatic boolean isFinite(double value)NaN is unequal to itself; infinities exceed the largest finite double.

SLSignalSample #sleela 2.5 (lib/signal-processing/SLSignalSample.sleela)

SLSignalSample class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valuedouble valueNo description in source.
previousSLSignalSample previousNo description in source.
nextSLSignalSample nextNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double sampleValue)No description in source.

SLSignalScalar #sleela 2.5 (lib/signal-processing/SLSignalScalar.sleela)

SLSignalScalar class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valuedouble valueNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double nextValue)No description in source.
getdouble get()No description in source.

SLSignalSeries #sleela 2.5 (lib/signal-processing/SLSignalSeries.sleela)

SLSignalSeries class

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
headSLSignalSample headNo description in source.
tailSLSignalSample tailNo description in source.
countint countNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
clearvoid clear()No description in source.
sizeint size()No description in source.
emptyboolean empty()No description in source.
appendboolean append(double value)No description in source.
sampleAtSLSignalSample sampleAt(int index)No description in source.
valuesFiniteboolean valuesFinite()No description in source.
appendSeriesboolean appendSeries(SLSignalSeries source)No description in source.

SLSignalStatistics #sleela 2.5 (lib/signal-processing/SLSignalStatistics.sleela)

SLSignalStatistics class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
meanint mean(SLSignalSeries input, SLSignalScalar result)No description in source.
rmsint rms(SLSignalSeries input, SLSignalScalar result)No description in source.