![]() |
OpendTect
6.3
|
Sharable data distribution. Sampling defaults to 0 step 1. More...
Public Types | |
| typedef VT | DataValueType |
| typedef DataValueType | PosType |
| typedef VT | ValueType |
| typedef TypeSet< VT > | SetType |
| typedef SetType::size_type | size_type |
| typedef size_type | IdxType |
| typedef SamplingData< PosType > | SamplingType |
| typedef Interval< VT > | RangeType |
Public Types inherited from Monitorable | |
| typedef int | ChangeType |
| typedef int64_t | IDType |
| typedef int64_t | DirtyCountType |
| typedef CNotifier< Monitorable, ChangeData > | ChangeDataNotifier |
Public Member Functions | |
| DataDistribution () | |
| DataDistribution (size_type) | |
| DataDistribution (SamplingType, size_type n=256) | |
| DataDistribution (const SetType &) | |
| DataDistribution (const SetType &, SamplingType) | |
| mDeclMonitorableAssignment (DataDistribution) | |
| size_type | size () const |
| bool | isEmpty () const |
| void | setEmpty () |
| mImplSimpleMonitoredGetSet (inline, sampling, setSampling, SamplingType, sampling_, cSamplingChange()) | |
| void | setSize (size_type) |
| VT | get (IdxType, bool cumulative=false) const |
| VT | operator[] (IdxType) const |
| VT | valueAt (PosType, bool cumulative) const |
| IdxType | getBinNr (PosType) const |
| SetType | getSet (bool cum) const |
| void | set (IdxType, VT) |
| slow, O(N) More... | |
| void | set (const VT *) |
| fast, no checks More... | |
| void | add (const VT *) |
| fast, no checks More... | |
| bool | isNormalised () const |
| VT | sumOfValues () const |
| VT | maxValue () const |
| RangeType | dataRange () const |
| PosType | positionForCumulative (VT) const |
| PosType | medianPosition () const |
| VT * | getArr (bool cum) const |
| for fast non-shared usage More... | |
Public Member Functions inherited from SharedObject | |
| SharedObject (const char *nm=0) | |
| SharedObject (const SharedObject &) | |
| SharedObject & | operator= (const SharedObject &) |
| bool | operator== (const SharedObject &) const |
| bool | operator!= (const SharedObject &oth) const |
| virtual SharedObject * | clone () const |
| ChangeType | compareWith (const Monitorable &) const |
Public Member Functions inherited from NamedMonitorable | |
| NamedMonitorable (const char *nm=0) | |
| NamedMonitorable (const NamedObject &) | |
| virtual | ~NamedMonitorable () |
| NamedMonitorable (const NamedMonitorable &) | |
| NamedMonitorable & | operator= (const NamedMonitorable &) |
| bool | operator== (const NamedMonitorable &) const |
| bool | operator!= (const NamedMonitorable &oth) const |
| virtual NamedMonitorable * | getClone () const |
| virtual BufferString | getName () const |
| virtual void | setName (const char *) |
Public Member Functions inherited from Monitorable | |
| Monitorable (const Monitorable &) | |
| virtual | ~Monitorable () |
| Monitorable & | operator= (const Monitorable &) |
| bool | operator== (const Monitorable &) const |
| virtual ChangeDataNotifier & | objectChanged () const |
| virtual Notifier< Monitorable > & | objectToBeDeleted () const |
| virtual void | touch () const |
| virtual DirtyCountType | dirtyCount () const |
| void | sendChangeNotification (const ChangeData &) const |
| void | sendEntireObjectChangeNotification () const |
| void | transferNotifsTo (const Monitorable &, const CallBacker *onlyfor=0) 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 |
| bool | getNameFromPar (const IOPar &) |
| void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
| static ChangeType | cDataChange () |
| static ChangeType | cSamplingChange () |
| static const DataDistribution< VT > & | getEmptyDistrib () |
| static IdxType | getBinNrFor (PosType, const SamplingType &, size_type nrbins) |
Static Public Member Functions inherited from SharedObject | |
| static Notifier< SharedObject > & | instanceCreated () |
Static Public Member Functions inherited from NamedMonitorable | |
| static Notifier< NamedMonitorable > & | instanceCreated () |
| static ChangeType | cNameChange () |
Static Public Member Functions inherited from Monitorable | |
| static Notifier< Monitorable > & | instanceCreated () |
| defines static instanceCreated() More... | |
| static ChangeType | cEntireObjectChange () |
| static ChangeType | cNoChange () |
| static IDType | cUnspecChgID () |
| static IDType | cEntireObjectChgID () |
| static ChangeType | changeNotificationTypeOf (CallBacker *) |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Protected Member Functions | |
| ~DataDistribution () | |
| void | setCumData (int) |
| VT | gtMax (int *idxat=0) const |
Protected Member Functions inherited from SharedObject | |
| void | copyAll (const SharedObject &) |
| virtual | ~SharedObject () |
Protected Member Functions inherited from NamedMonitorable | |
| void | copyAll (const NamedMonitorable &) |
Protected Member Functions inherited from Monitorable | |
| Monitorable () | |
| void | copyAll (const Monitorable &) |
| void | sendChgNotif (AccessLocker &, const ChangeData &) const |
| calls objectChanged with released lock More... | |
| void | sendChgNotif (AccessLocker &, ChangeType, IDType) const |
| calls objectChanged with released lock More... | |
| void | sendDelNotif () const |
| void | stopChangeNotifications () const |
| void | resumeChangeNotifications () const |
| template<class T > | |
| T | getMemberSimple (const T &) const |
| the get function used by mImplSimpleMonitoredGet More... | |
| template<class TMember , class TSetTo > | |
| void | setMemberSimple (TMember &, TSetTo, ChangeType, IDType) |
| the set function used by mImplSimpleMonitoredSet More... | |
Protected Member Functions inherited from CallBacker | |
| void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More... | |
Protected Attributes | |
| SetType | data_ |
| SetType | cumdata_ |
| SamplingType | sampling_ |
Protected Attributes inherited from Monitorable | |
| Threads::Lock | accesslock_ |
Protected Attributes inherited from NamedObject | |
| BufferString | name_ |
Friends | |
| class | DataDistributionChanger< VT > |
| class | DataDistributionInfoExtracter< VT > |
| class | DataDistributionIter< VT > |
Additional Inherited Members | |
Protected Types inherited from Monitorable | |
| typedef Threads::Atomic< DirtyCountType > | DirtyCounter |
Sharable data distribution. Sampling defaults to 0 step 1.
The data in this object can be either true 'frequencies' or 'histogram' values. More generally, if you want to obtain a 'true' distribution in the mathematical sense of the word, then you should use 'normalise', which assures that the sum of he values is 1.
The SamplingData describes the positions of the bin centers. Thus, if you have a hard start and stop, calculate the step like (stop-start)/nrbins, then put sampling.start at start + 0.5*step.
Note that it is a bad idea to have negative data (P<0). We're not checking.
Also note that PosType and DataValueType are the same typedefs. The position in a distribution is a data value.
| typedef VT DataDistribution< VT >::DataValueType |
| typedef size_type DataDistribution< VT >::IdxType |
| typedef DataValueType DataDistribution< VT >::PosType |
| typedef Interval<VT> DataDistribution< VT >::RangeType |
| typedef SamplingData<PosType> DataDistribution< VT >::SamplingType |
| typedef TypeSet<VT> DataDistribution< VT >::SetType |
| typedef SetType::size_type DataDistribution< VT >::size_type |
| typedef VT DataDistribution< VT >::ValueType |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
fast, no checks
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
for fast non-shared usage
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
| DataDistribution< VT >::mDeclMonitorableAssignment | ( | DataDistribution< VT > | ) |
|
inline |
| DataDistribution< VT >::mImplSimpleMonitoredGetSet | ( | inline | , |
| sampling | , | ||
| setSampling | , | ||
| SamplingType | , | ||
| sampling_ | , | ||
| cSamplingChange() | |||
| ) |
|
inline |
|
inline |
|
inline |
slow, O(N)
|
inline |
fast, no checks
|
inlineprotected |
|
inline |
| void DataDistribution< VT >::setSize | ( | size_type | ) |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017