![]() |
OpendTect
6.3
|
RunCalc manager which buffers a part of the data. More...
Public Member Functions | |
| WindowedCalc (const CalcSetup &rcs, int sz) | |
| ~WindowedCalc () | |
| void | clear () |
| WindowedCalc & | addValue (T data, T weight=1) |
| WindowedCalc & | operator+= (T t) |
| int | getIndex (Type) const |
| Only use for Min, Max or Median. More... | |
| double | getValue (Type) const |
| T | count () const |
| double | average () const |
| double | variance () const |
| double | normvariance () const |
| T | sum () const |
| T | sqSum () const |
| double | rms () const |
| double | stdDev () const |
| T | mostFreq () const |
| T | min (int *i=0) const |
| T | max (int *i=0) const |
| T | extreme (int *i=0) const |
| T | median (int *i=0) const |
Protected Member Functions | |
| void | fillCalc (RunCalc< T > &) const |
Protected Attributes | |
| RunCalc< T > | calc_ |
| const int | sz_ |
| T * | wts_ |
| T * | vals_ |
| int | posidx_ |
| bool | empty_ |
| bool | full_ |
| bool | needcalc_ |
RunCalc manager which buffers a part of the data.
Allows calculating running stats on a window only. Once the window is full, WindowedCalc will replace the first value added (fifo).
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
Only use for Min, Max or Median.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017