API / geotoolkit / seismic / analysis / maths / DataStatistics / DataStatistics
maths.DataStatistics.DataStatistics
A utility class with useful methods for statistics operations Ported from the Saddleback Geosolution's Java implementation
Constructors
Methods
▸ getClassName(): string
string
▸ Static fix(value): number
Find the closest whole number (towards zero) to the number specified
| Name | Type | Description |
|---|---|---|
value | number | The value to be fixed |
number
fixedValue, The fixed value
▸ Static getClassName(): string
string
▸ Static max(inputData, minIndex, maxIndex): number
Find the maximum value of the array
| Name | Type | Description |
|---|---|---|
inputData | number[] | The input data |
minIndex | number | minimum data index |
maxIndex | number | maximum data index |
number
max The maximum value of the array
▸ Static mean(inputData, minIndex?, maxIndex?): number
Find the sum of absolute values of all array values
| Name | Type | Description |
|---|---|---|
inputData | Float32Array | The input data |
Optional minIndex | number | minimum data index |
Optional maxIndex | number | maximum data index |
number
absSum, The sum of absolute values of all array values
▸ Static min(inputData, minIndex, maxIndex): number
Find the minimum value of the array
| Name | Type | Description |
|---|---|---|
inputData | number[] | The input data |
minIndex | number | minimum data index |
maxIndex | number | maximum data index |
number
min The minimum value of the array
▸ Static sum(inputData, minIndex, maxIndex): number
Find the sum of all the array values
| Name | Type | Description |
|---|---|---|
inputData | number[] | The input data |
minIndex | number | minimum data index |
maxIndex | number | maximum data index |
number
sum The sum of all the array values
▸ Static sumAbs(inputData, minIndex, maxIndex): number
Find the sum of absolute values of all array values
| Name | Type | Description |
|---|---|---|
inputData | number[] | The input data |
minIndex | number | minimum data index |
maxIndex | number | maximum data index |
number
absSum, The sum of absolute values of all array values