![]() |
OpendTect
6.3
|
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 | message () const |
| virtual uiString | nrDoneText () const |
| virtual uiRetVal | errorWithDetails () const |
| 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 NamedCallBacker | |
| NamedCallBacker (const char *nm=0) | |
| NamedCallBacker (const NamedCallBacker &) | |
| bool | operator== (const NamedCallBacker &oth) const |
| bool | operator== (const NamedObject &oth) const |
| virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
Public Member Functions inherited from CallBacker | |
| CallBacker () | |
| CallBacker (const CallBacker &) | |
| virtual | ~CallBacker () |
| bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
| bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
| void | detachCB (const NotifierAccess &, const CallBack &) const |
| void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
| bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More... | |
| virtual bool | isCapsule () const |
| void | stopReceivingNotifications () const |
Public Member Functions inherited from NamedObject | |
| NamedObject (const char *nm=0) | |
| NamedObject (const NamedObject &oth) | |
| virtual | ~NamedObject () |
| NamedObject & | operator= (const NamedObject &) |
| bool | operator== (const NamedObject &oth) const |
| virtual const OD::String & | name () const |
| virtual BufferString | getName () const |
| virtual void | setName (const char *nm) |
| bool | getNameFromPar (const IOPar &) |
| void | putNameInPar (IOPar &) const |
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 NamedCallBacker | |
| void | sendDelNotif () const |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () const |
| 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 NamedCallBacker | |
| Notifier< NamedCallBacker > | delnotif_ |
| Threads::Atomic< bool > | delalreadytriggered_ |
Protected Attributes inherited from NamedObject | |
| BufferString | name_ |
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 | stdMessage () |
| static uiString | stdNrDoneText () |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
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. 2017