![]() |
OpendTect
7.0
|
Calculates mean, min, max etc., as running values. More...
Public Member Functions | |
RunCalc (const CalcSetup &s) | |
RunCalc< T > & | addValue (T data, T weight=1) |
RunCalc< T > & | addValues (size_type sz, const T *data, const T *weights=0) |
mUseType (CalcSetup, idx_type) | |
mUseType (CalcSetup, size_type) | |
RunCalc< T > & | operator+= (T t) |
RunCalc< T > & | removeValue (T data, T weight=1) |
RunCalc< T > & | replaceValue (T olddata, T newdata, T wt=1) |
![]() | |
virtual | ~BaseCalc () |
double | average () const |
void | clear () |
T | clipVal (float ratio, bool upper) const |
requires sort; 0 <= ratio <= 1 More... | |
size_type | count () const |
T | extreme (idx_type *index_of_extr=0) const |
idx_type | getIndex (Type) const |
only for Median, Min and Max More... | |
double | getValue (Type) const |
bool | hasUndefs () const |
bool | isEmpty () const |
bool | isWeighted () const |
T | max (idx_type *index_of_max=0) const |
T | median (idx_type *index_of_median=0) const |
const T * | medValsArr () const |
T | min (idx_type *index_of_min=0) const |
T | mostFreq () const |
float_complex | mostFreq () const |
mUseType (CalcSetup, idx_type) | |
mUseType (CalcSetup, size_type) | |
double | normvariance () const |
double | rms () const |
const CalcSetup & | setup () const |
size_type | size (bool used=true) const |
T | sqSum () const |
double | stdDev () const |
T | sum () const |
virtual double | variance () const |
double | variance () const |
Protected Member Functions | |
void | setMostFrequent (float_complex val, float_complex wt) |
void | setMostFrequent (T val, T wt) |
![]() | |
BaseCalc (const CalcSetup &s) | |
T | computeMedian (idx_type *index_of_median=nullptr) const |
T | computeWeightedMedian (idx_type *index_of_median=nullptr) const |
bool | isZero (const double &val) const |
bool | isZero (const float &val) const |
bool | isZero (const T &) const |
const float_complex * | sort (idx_type *idx_of_med) |
virtual const T * | sort (idx_type *index_of_median=nullptr) |
Additional Inherited Members | |
![]() | |
LargeValVec< idx_type > | clss_ |
LargeValVec< T > | clsswt_ |
bool | issorted_ = false |
idx_type | maxidx_ |
T | maxval_ |
LargeValVec< idx_type > | medidxs_ |
LargeValVec< T > | medvals_ |
LargeValVec< T > | medwts_ |
idx_type | minidx_ |
T | minval_ |
size_type | nradded_ |
Threads::Atomic< size_type > | nrused_ |
CalcSetup | setup_ |
T | sum_w_ |
T | sum_wx_ |
T | sum_wxx_ |
T | sum_x_ |
T | sum_xx_ |
Calculates mean, min, max etc., as running values.
The idea is that you simply add values and ask for a stat whenever needed. The clear() method resets the object and makes it able to work with new data.
Adding values can be doing with weight (addValue) or without (operator +=). You can remove a value; for Min or Max this has no effect as this would require buffering all data.
|
inline |
|
inline |
|
inline |
Stats::RunCalc< T >::mUseType | ( | CalcSetup | , |
idx_type | |||
) |
Stats::RunCalc< T >::mUseType | ( | CalcSetup | , |
size_type | |||
) |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
Generated at 02/08/2024 10:20:26 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024