API / geotoolkit / seismic / analysis / transforms / SpectraCalculator / SpectraCalculator
transforms.SpectraCalculator.SpectraCalculator
This class has methods for calculating various frequency properties. Ported from the Saddleback Geosolution's Java implementation
Constructors
Methods
Methods
▸ getClassName(): string
string
▸ Static calcAmplitude(xre, xim, nonzero, nyquistLen?): Float32Array
Calculates the amplitude components of the complex signal
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
nonzero | number | Length of the signal |
Optional nyquistLen | number | The nyquist length |
Float32Array
amplitudes The amplitude components of the signal
▸ Static calcAmplitudeSmoothed(xre, xim, sampleRate, nonzero, hzLength): Float32Array
Calculates the amplitude components of a complex signal and smoothes the result.
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
sampleRate | number | The sample rate |
nonzero | number | Length of the signal |
hzLength | number | The length of each oscillation |
Float32Array
smoothedAmplitudes The smoothed amplitude components of the signal
▸ Static calcPhaseInDegrees(xre, xim, nyquistLen?): Float32Array
Calculates the phase components of a complex signal in degrees.
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
Optional nyquistLen | number | The nyquist length |
Float32Array
phases The phase components of the signal
▸ Static calcPhaseInRadians(xre, xim, nyquistLen?): Float32Array
Calculates the phase components of a complex signal in radians.
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
Optional nyquistLen | number | The nyquist length |
Float32Array
phases The phase components of the signal
▸ Static calcPower(xre, xim, nonzero, nyquistLen): Float32Array
Calculates the power components of the complex signal
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
nonzero | number | Length of the signal |
nyquistLen | number | The nyquist length |
Float32Array
powers The power components of the signal
▸ Static calcPowerDb(xre, xim, nonzero, nyquistlen): Float32Array
Computes the power of the signal in decibels
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
nonzero | number | Length of the signal |
nyquistlen | number | The nyquist length |
Float32Array
powersDb The power components of the signal in decibels
▸ Static calcPowerDbNormalized(xre, xim, nonzero, nyquistLen, nFactor): Float32Array
Computes the normalized power of the signal in decibels
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
nonzero | number | Length of the signal |
nyquistLen | number | The nyquist length |
nFactor | number | the normalization factor |
Float32Array
powersDb The power components of the signal in decibels
▸ Static calcUnWrappedPhaseInDegrees(xre, xim, nyquistLen?): Float32Array
Unwraps the phase components of a complex signal in degrees.
| Name | Type | Description |
|---|---|---|
xre | Float32Array | Real signal |
xim | Float32Array | Imaginary signal |
Optional nyquistLen | number | The nyquist length |
Float32Array
phases The unwrapped phase components of the signal
▸ Static getClassName(): string
string
▸ Static phaseUnwrapDegrees(phaseSpec): Float32Array
Unwraps the degree phase components of the signal
| Name | Type | Description |
|---|---|---|
phaseSpec | Float32Array | The phase spectrum |
Float32Array
unwrapped The unwrapped phase spectrum
▸ Static phaseUnwrapRadToDeg(phaseSpec): Float32Array
Unwraps the radian phase components of the signal and then converts to degrees
| Name | Type | Description |
|---|---|---|
phaseSpec | Float32Array | The phase spectrum |
Float32Array
unwrapped The unwrapped phase spectrum
▸ Static phaseUnwrapRadians(phaseSpec): Float32Array
Unwraps the radian phase components of the signal ( Makes phases take values between -PI and +PI )
| Name | Type | Description |
|---|---|---|
phaseSpec | Float32Array | The phase spectrum |
Float32Array
unwrapped The unwrapped phase spectrum
▸ Static smoothSpectrum(spectrum, windowWidth): Float32Array
Smoothes the spectrum components of the signal
| Name | Type | Description |
|---|---|---|
spectrum | Float32Array | The signal |
windowWidth | number | The window width |
Float32Array
smoothedSpectrum The smoothed spectrum