OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SampledNDProbDenFunc Class Reference

Multi-dimensional PDF based on binned data. More...

Inheritance diagram for SampledNDProbDenFunc:
[legend]

Public Member Functions

 SampledNDProbDenFunc (int nrdims)
 
 SampledNDProbDenFunc (const ArrayND< float > &)
 
 SampledNDProbDenFunc (const SampledNDProbDenFunc &)
 
SampledNDProbDenFuncoperator= (const SampledNDProbDenFunc &)
 
virtual void copyFrom (const ProbDenFunc &)
 
virtual SampledNDProbDenFuncclone () const
 
virtual const char * getTypeStr () const
 
virtual float normFac () const
 
virtual bool canScale () const
 
virtual void scale (float f)
 
virtual void prepareRandDrawing () const
 
virtual bool isEq (const ProbDenFunc &oth) const
 already checked for type, name and dim names More...
 
virtual int nrDims () const
 
virtual const char * dimName (int) const
 
virtual void setDimName (int dim, const char *nm)
 
virtual float averagePos (int dim) const
 
virtual float value (const TypeSet< float > &) const
 
virtual void drawRandomPos (TypeSet< float > &) const
 
virtual ArrayND< float > * getArrClone () const
 
virtual void fillPar (IOPar &) const
 
virtual bool usePar (const IOPar &)
 
virtual void writeBulk (od_ostream &, bool binary) const
 
virtual bool readBulk (od_istream &, bool binary)
 
 SampledNDProbDenFunc ()
 
- Public Member Functions inherited from ProbDenFunc
virtual ~ProbDenFunc ()
 
virtual bool isEqual (const ProbDenFunc &) const
 
virtual bool isCompatibleWith (const ProbDenFunc &) const
 
void getIndexTableFor (const ProbDenFunc &pdf, TypeSet< int > &tbl) const
 tbl[0] tells what my index is for pdf's index '0' More...
 
- 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::Stringname () const
 
virtual const OD::StringannotName () 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 ArrayNDProbDenFunc
 ArrayNDProbDenFunc ()
 
 ArrayNDProbDenFunc (const ArrayNDProbDenFunc &oth)
 
virtual ~ArrayNDProbDenFunc ()
 
ArrayNDProbDenFuncoperator= (const ArrayNDProbDenFunc &)
 
int size (int dim) const
 
od_uint64 totalSize () const
 
virtual const ArrayND< float > & getData () const
 
virtual ArrayND< float > & getData ()
 
virtual SamplingData< float > sampling (int dim) const
 
virtual SamplingData< float > & sampling (int dim)
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
void writeBulkData (od_ostream &, bool) const
 
bool readBulkData (od_istream &, bool)
 
float getAveragePos (int dim) const
 

Static Public Member Functions

static const char * typeStr ()
 
- Static Public Member Functions inherited from ProbDenFunc
static const char * sKeyNrDim ()
 
- Static Public Member Functions inherited from ArrayNDProbDenFunc
static float findAveragePos (const float *, int, float grandtotal)
 

Public Attributes

TypeSet< SamplingData< float > > sds_
 
ArrayNDImpl< float > bins_
 
BufferStringSet dimnms_
 

Protected Member Functions

virtual const ArrayND< float > & getArrND () const
 
virtual const SamplingData< float > & getSampling (int d) const
 
- Protected Member Functions inherited from ProbDenFunc
 ProbDenFunc ()
 
 ProbDenFunc (const ProbDenFunc &)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 
- Protected Member Functions inherited from ArrayNDProbDenFunc
virtual float getNormFac () const
 
virtual void doScale (float)
 
virtual bool gtIsEq (const ProbDenFunc &) const
 
void prepRndDrw () const
 
void fillCumBins () const
 
od_uint64 getRandBin () const
 
od_uint64 getBinPos (float) const
 

Additional Inherited Members

- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 
- Protected Attributes inherited from ArrayNDProbDenFunc
float * cumbins_
 

Detailed Description

Multi-dimensional PDF based on binned data.

If the 'dimnms_' are not filled, 'Dim0', 'Dim1' ... etc. will be returned.

Constructor & Destructor Documentation

SampledNDProbDenFunc::SampledNDProbDenFunc ( int  nrdims)
SampledNDProbDenFunc::SampledNDProbDenFunc ( const ArrayND< float > &  )
SampledNDProbDenFunc::SampledNDProbDenFunc ( const SampledNDProbDenFunc )
SampledNDProbDenFunc::SampledNDProbDenFunc ( )

Member Function Documentation

virtual float SampledNDProbDenFunc::averagePos ( int  dim) const
inlinevirtual

Implements ProbDenFunc.

virtual bool SampledNDProbDenFunc::canScale ( ) const
inlinevirtual

Reimplemented from ProbDenFunc.

virtual SampledNDProbDenFunc* SampledNDProbDenFunc::clone ( ) const
inlinevirtual

Implements ProbDenFunc.

virtual void SampledNDProbDenFunc::copyFrom ( const ProbDenFunc )
virtual

Implements ProbDenFunc.

virtual const char* SampledNDProbDenFunc::dimName ( int  ) const
virtual

Implements ProbDenFunc.

virtual void SampledNDProbDenFunc::drawRandomPos ( TypeSet< float > &  ) const
virtual

Implements ProbDenFunc.

virtual void SampledNDProbDenFunc::fillPar ( IOPar ) const
virtual

Implements ProbDenFunc.

virtual ArrayND<float>* SampledNDProbDenFunc::getArrClone ( ) const
inlinevirtual

Implements ArrayNDProbDenFunc.

virtual const ArrayND<float>& SampledNDProbDenFunc::getArrND ( ) const
inlineprotectedvirtual

Implements ArrayNDProbDenFunc.

virtual const SamplingData<float>& SampledNDProbDenFunc::getSampling ( int  d) const
inlineprotectedvirtual

Implements ArrayNDProbDenFunc.

virtual const char* SampledNDProbDenFunc::getTypeStr ( ) const
inlinevirtual

Implements ProbDenFunc.

virtual bool SampledNDProbDenFunc::isEq ( const ProbDenFunc ) const
inlinevirtual

already checked for type, name and dim names

Implements ProbDenFunc.

virtual float SampledNDProbDenFunc::normFac ( ) const
inlinevirtual

Reimplemented from ProbDenFunc.

virtual int SampledNDProbDenFunc::nrDims ( ) const
inlinevirtual

Implements ProbDenFunc.

SampledNDProbDenFunc& SampledNDProbDenFunc::operator= ( const SampledNDProbDenFunc )
virtual void SampledNDProbDenFunc::prepareRandDrawing ( ) const
inlinevirtual

Reimplemented from ProbDenFunc.

virtual bool SampledNDProbDenFunc::readBulk ( od_istream ,
bool  binary 
)
virtual

Reimplemented from ProbDenFunc.

virtual void SampledNDProbDenFunc::scale ( float  f)
inlinevirtual

Reimplemented from ProbDenFunc.

virtual void SampledNDProbDenFunc::setDimName ( int  dim,
const char *  nm 
)
inlinevirtual

Implements ProbDenFunc.

static const char* SampledNDProbDenFunc::typeStr ( )
inlinestatic
virtual bool SampledNDProbDenFunc::usePar ( const IOPar )
virtual

Implements ProbDenFunc.

virtual float SampledNDProbDenFunc::value ( const TypeSet< float > &  ) const
virtual

Implements ProbDenFunc.

virtual void SampledNDProbDenFunc::writeBulk ( od_ostream ,
bool  binary 
) const
virtual

Reimplemented from ProbDenFunc.

Member Data Documentation

ArrayNDImpl<float> SampledNDProbDenFunc::bins_
BufferStringSet SampledNDProbDenFunc::dimnms_
TypeSet< SamplingData<float> > SampledNDProbDenFunc::sds_

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019