![]() |
OpendTect-6_4
6.4
|
Stats computation running in parallel. More...
Public Member Functions | |
| ParallelCalc (const CalcSetup &s, const T *data, int sz, const T *weights=0) | |
| ParallelCalc (const CalcSetup &s) | |
| void | setValues (const T *inp, int sz, const T *wght=0) |
| void | setEmpty () |
| const uiString | errMsg () const |
| virtual double | variance () const |
| template<> | |
| double | variance () const |
Public Member Functions inherited from ParallelTask | |
| virtual | ~ParallelTask () |
| bool | execute () |
| virtual bool | executeParallel (bool parallel) |
| void | setProgressMeter (ProgressMeter *) |
| Must be called before execute() More... | |
| int64_t | nrDone () const |
| May be -1, i.e. class does not report nrdone. More... | |
| int64_t | totalNr () const |
Public Member Functions inherited from Task | |
| virtual | ~Task () |
| virtual uiString | uiMessage () const |
| will be message() again in 7.x More... | |
| virtual uiString | uiNrDoneText () const |
| will be nrDoneText() in 7.x More... | |
| virtual void | enableWorkControl (bool=true) |
| Must be called before execute() More... | |
| bool | workControlEnabled () const |
| virtual void | controlWork (Control) |
| virtual Control | getState () const |
Public Member Functions inherited from NamedObject | |
| NamedObject (const char *nm=0) | |
| NamedObject (const NamedObject *linkedto) | |
| NamedObject (const NamedObject &) | |
| virtual | ~NamedObject () |
| void | setLinkedTo (NamedObject *) |
| bool | operator== (const NamedObject &oth) const |
| virtual const OD::String & | name () const |
| virtual const OD::String & | annotName () const |
| virtual void | setName (const char *) |
| void | setCleanName (const char *) |
| cleans string first More... | |
| void | deleteNotify (const CallBack &) |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
| bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
| void | detachCB (NotifierAccess &, const CallBack &) |
| void | detachCB (NotifierAccess *notif, const CallBack &cb) |
| bool | isNotifierAttached (NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
Public Member Functions inherited from Stats::BaseCalc< T > | |
| virtual | ~BaseCalc () |
| void | clear () |
| const CalcSetup & | setup () const |
| bool | isWeighted () const |
| double | getValue (Type) const |
| int | getIndex (Type) const |
| only for Median, Min and Max More... | |
| bool | hasUndefs () const |
| int | size (bool used=true) const |
| bool | isEmpty () const |
| int | count () const |
| double | average () const |
| T | mostFreq () const |
| T | sum () const |
| T | min (int *index_of_min=0) const |
| T | max (int *index_of_max=0) const |
| T | extreme (int *index_of_extr=0) const |
| T | median (int *index_of_median=0) const |
| T | sqSum () const |
| double | rms () const |
| double | stdDev () const |
| double | normvariance () const |
| T | clipVal (float ratio, bool upper) const |
| require median; 0 <= ratio <= 1 More... | |
| template<> | |
| double | variance () const |
| template<> | |
| float_complex | mostFreq () const |
Protected Member Functions | |
| od_int64 | nrIterations () const |
| bool | doPrepare (int) |
| bool | doWork (od_int64, od_int64, int) |
| bool | doFinish (bool) |
| template<> | |
| bool | doWork (od_int64, od_int64, int) |
| template<> | |
| bool | doFinish (bool) |
Protected Member Functions inherited from ParallelTask | |
| virtual int | maxNrThreads () const |
| virtual int | minThreadSize () const |
| virtual bool | stopAllOnFailure () const |
| ParallelTask (const char *nm=0) | |
| ParallelTask (const ParallelTask &) | |
| int64_t | calculateThreadSize (int64_t totalnr, int nrthreads, int thread) const |
| void | addToNrDone (int64_t increment) |
| void | quickAddToNrDone (int64_t loopidx) |
| void | resetNrDone () |
Protected Member Functions inherited from Task | |
| Task (const char *nm=0) | |
| virtual bool | shouldContinue () |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () |
| Call from the destructor of your inherited object. More... | |
Protected Member Functions inherited from Stats::BaseCalc< T > | |
| BaseCalc (const CalcSetup &s) | |
| bool | isZero (const T &t) const |
| template<> | |
| bool | isZero (const float &val) const |
| template<> | |
| bool | isZero (const double &val) const |
Protected Attributes | |
| uiString | errmsg_ |
| Threads::Barrier | barrier_ |
| const T * | data_ |
| const T * | weights_ |
| T | meanval_ |
| T | meanval_w_ |
| T | variance_ |
| T | variance_w_ |
Protected Attributes inherited from Task | |
| Control | control_ |
| Threads::ConditionVar * | workcontrolcondvar_ |
Protected Attributes inherited from NamedObject | |
| BufferString * | name_ |
| NamedObject * | linkedto_ |
| CallBackSet * | delnotify_ |
Protected Attributes inherited from Stats::BaseCalc< T > | |
| CalcSetup | setup_ |
| int | nradded_ |
| int | nrused_ |
| int | minidx_ |
| int | maxidx_ |
| T | minval_ |
| T | maxval_ |
| T | sum_x_ |
| T | sum_xx_ |
| T | sum_w_ |
| T | sum_wx_ |
| T | sum_wxx_ |
| TypeSet< int > | clss_ |
| TypeSet< T > | clsswt_ |
| TypeSet< T > | medwts_ |
Private Member Functions | |
| mODTextTranslationClass (ParallelCalc) | |
Additional Inherited Members | |
Public Types inherited from Task | |
| enum | Control { Run, Pause, Stop } |
Static Public Member Functions inherited from ParallelTask | |
| static uiString | sPosFinished () |
| static uiString | sTrcFinished () |
Static Public Member Functions inherited from Task | |
| static uiString | stdNrDoneText () |
| static uiString | uiStdNrDoneText () |
Public Attributes inherited from Stats::BaseCalc< T > | |
| TypeSet< T > | medvals_ |
Stats computation running in parallel.
The difference with the running values (Stats::RunCalc) is that you have to pass the entire data array prior to the execution.
It also works with optional weights.
|
inline |
|
inline |
|
inlineprotectedvirtual |
Called after all doWork have finished.
| success | indicates whether all doWork returned true. |
Reimplemented from ParallelTask.
|
inlineprotectedvirtual |
Called after all doWork have finished.
| success | indicates whether all doWork returned true. |
Reimplemented from ParallelTask.
|
inlineprotectedvirtual |
Called once, before any doWork is called.
Reimplemented from ParallelTask.
|
inlineprotected |
|
inlineprotected |
|
inline |
|
private |
|
inlineprotectedvirtual |
Implements ParallelTask.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from Stats::BaseCalc< T >.
|
inlinevirtual |
Reimplemented from Stats::BaseCalc< T >.
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019