Last updated

API / geotoolkit / seismic / analysis / maths / DataStatistics / DataStatistics

Class: DataStatistics

maths.DataStatistics.DataStatistics

A utility class with useful methods for statistics operations Ported from the Saddleback Geosolution's Java implementation

Table of contents

Constructors
Methods

Contents

Constructors

new DataStatistics()

new DataStatistics()

Methods

getClassName

getClassName(): string

Returns

string


fix

Static fix(value): number

Find the closest whole number (towards zero) to the number specified

Parameters

Name Type Description
valuenumberThe value to be fixed

Returns

number

fixedValue, The fixed value


getClassName

Static getClassName(): string

Returns

string


max

Static max(inputData, minIndex, maxIndex): number

Find the maximum value of the array

Parameters

Name Type Description
inputDatanumber[]The input data
minIndexnumberminimum data index
maxIndexnumbermaximum data index

Returns

number

max The maximum value of the array


mean

Static mean(inputData, minIndex?, maxIndex?): number

Find the sum of absolute values of all array values

Parameters

Name Type Description
inputDataFloat32ArrayThe input data
Optional minIndexnumberminimum data index
Optional maxIndexnumbermaximum data index

Returns

number

absSum, The sum of absolute values of all array values


min

Static min(inputData, minIndex, maxIndex): number

Find the minimum value of the array

Parameters

Name Type Description
inputDatanumber[]The input data
minIndexnumberminimum data index
maxIndexnumbermaximum data index

Returns

number

min The minimum value of the array


sum

Static sum(inputData, minIndex, maxIndex): number

Find the sum of all the array values

Parameters

Name Type Description
inputDatanumber[]The input data
minIndexnumberminimum data index
maxIndexnumbermaximum data index

Returns

number

sum The sum of all the array values


sumAbs

Static sumAbs(inputData, minIndex, maxIndex): number

Find the sum of absolute values of all array values

Parameters

Name Type Description
inputDatanumber[]The input data
minIndexnumberminimum data index
maxIndexnumbermaximum data index

Returns

number

absSum, The sum of absolute values of all array values