API / geotoolkit / seismic / analysis / filters / TaperFilter / TaperFilter
filters.TaperFilter.TaperFilter
The TaperFilter implements both pass band and band reject filtering on the traces.
This class uses a taper function and applies filtering in the Fourier domain.
The taper function is defined using four frequencies (encapsulated in the class TaperFrequencyBoundary).
Because this filter is applied in the Fourier domain, the filter object has to be aware of the
sample rate in order to map the frequencies to the data values property.
Methods
Constructors
• new TaperFilter(sampleRate, f1, f2, f3, f4, passFlag)
| Name | Type | Description |
|---|---|---|
sampleRate | number | The sample rate |
f1 | number | 1st frequency (hrz) |
f2 | number | 2nd frequency (hrz) |
f3 | number | 3rd frequency (hrz) |
f4 | number | 4th frequency (hrz) |
passFlag | boolean | The filtering mode |
Methods
▸ apply(input, length): Float32Array
Applies the filter on an array of data
| Name | Type | Description |
|---|---|---|
input | Float32Array | The input array |
length | number | The length of the input array that needs to be filtered. |
Float32Array
output The processed array
▸ getClassName(): string
string
▸ getFrequencyBoundary(): TaperFrequencyBoundary
Gets the frequency boundary
frequencyBoundary The frequency boundary
▸ getPassFlag(): boolean
Gets the pass flag
boolean
passFlag The pass flag
▸ getSampleRate(): number
Gets the sample rate
number
sampleRate The sample rate
▸ setFrequencyBoundary(f1): TaperFilter
Sets frequency boundary
| Name | Type | Description |
|---|---|---|
f1 | TaperFrequencyBoundary | another TaperFrequencyBoundary |
this
▸ setFrequencyBoundary(f1, f2, f3, f4): TaperFilter
Sets frequency boundary
| Name | Type | Description |
|---|---|---|
f1 | number | 1st frequency (hrz) |
f2 | number | 2-nd frequency (hrz) |
f3 | number | 3-rd frequency (hrz) |
f4 | number | 4-th frequency (hrz) |
this
▸ setPassFlag(passFlag): TaperFilter
This sets the filtering mode. Usually this filter is used as band pass filter, but it can be reverted to band rejection mode by calling this method with flag set to false
| Name | Type | Description |
|---|---|---|
passFlag | boolean | The pass flag |
this
▸ setSampleRate(sampleRate): TaperFilter
Sets the sample rate
| Name | Type | Description |
|---|---|---|
sampleRate | number | Sample rate is the number of times an analog signal is measured (sampled) per second. |
this
▸ Static getClassName(): string
string