API / geotoolkit / seismic / analysis / util / DataPadding / DataPadding
util.DataPadding.DataPadding
A utility class with methods useful for removing the DC Component of a signal by subtracting the mean value. Ported from the Saddleback Geosolution's Java implementation
Constructors
Methods
▸ getClassName(): string
string
▸ Static getClassName(): string
string
▸ Static getNextPowerOf2(n): number
Returns the next-highest power-of-2 to the number supplied. Example 1->2, 3->4, 5->8, 9->16, 17->32, etc..
| Name | Type | Description |
|---|---|---|
n | number | The number to be converted to the next power of 2. |
number
powerOfTwo The next power of two of the input number.
▸ Static padTrace(trace, length?): Float32Array
Pad a trace out to the length specified by input parameter.
| Name | Type | Description |
|---|---|---|
trace | number[] | Float32Array | The data trace to be padded |
Optional length | number | The length of padded trace |
Float32Array
paddedTrace padded trace unless length not a power of 2 then returns null.