OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ProbDenFunc Class Referenceabstract

Base class for Probability Density Functions. More...

Inheritance diagram for ProbDenFunc:
[legend]

Public Member Functions

virtual ~ProbDenFunc ()
 
virtual float averagePos (int dim) const =0
 
virtual bool canScale () const
 
virtual ProbDenFuncclone () const =0
 
virtual void copyFrom (const ProbDenFunc &)=0
 
void copyUOMFrom (const ProbDenFunc &)
 
virtual const char * dimName (int dim) const =0
 
virtual void drawRandomPos (TypeSet< float > &) const =0
 
virtual void fillPar (IOPar &) const =0
 
void getIndexTableFor (const ProbDenFunc &pdf, TypeSet< int > &tbl) const
 tbl[0] tells what my index is for pdf's index '0' More...
 
virtual const char * getTypeStr () const =0
 
const char * getUOMSymbol (int dim) const
 
virtual bool isCompatibleWith (const ProbDenFunc &) const
 
virtual bool isEqual (const ProbDenFunc &) const
 
virtual float normFac () const
 
virtual int nrDims () const =0
 
virtual void prepareRandDrawing () const
 
virtual bool readBulk (od_istream &, bool binary)
 
void readUOMFromPar (const IOPar &)
 
virtual void scale (float)
 
virtual void setDimName (int dim, const char *)=0
 
void setUOMSymbol (int dim, const char *)
 
virtual bool usePar (const IOPar &)=0
 
virtual float value (const TypeSet< float > &) const =0
 
virtual void writeBulk (od_ostream &, bool binary) const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
virtual const name_typename () const
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static const char * sKeyNrDim ()
 

Protected Member Functions

 ProbDenFunc ()
 
 ProbDenFunc (const ProbDenFunc &)
 
void cleanup ()
 
void copyNameFrom (const ProbDenFunc &)
 
void init ()
 
virtual bool isEq (const ProbDenFunc &) const =0
 already checked for type, name, dim names and units More...
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Base class for Probability Density Functions.

The values may not be normalized; if you need them to be: multiply with 'normFac()'. What you are getting can for example be the values from a histogram. All we require is that the value() implementation always returns positive values.

<>

Constructor & Destructor Documentation

◆ ~ProbDenFunc()

virtual ProbDenFunc::~ProbDenFunc ( )
inlinevirtual

◆ ProbDenFunc() [1/2]

ProbDenFunc::ProbDenFunc ( )
inlineprotected

◆ ProbDenFunc() [2/2]

ProbDenFunc::ProbDenFunc ( const ProbDenFunc )
protected

Member Function Documentation

◆ averagePos()

virtual float ProbDenFunc::averagePos ( int  dim) const
pure virtual

◆ canScale()

virtual bool ProbDenFunc::canScale ( ) const
inlinevirtual

◆ cleanup()

void ProbDenFunc::cleanup ( )
protected

◆ clone()

virtual ProbDenFunc* ProbDenFunc::clone ( ) const
pure virtual

◆ copyFrom()

virtual void ProbDenFunc::copyFrom ( const ProbDenFunc )
pure virtual

◆ copyNameFrom()

void ProbDenFunc::copyNameFrom ( const ProbDenFunc )
protected

◆ copyUOMFrom()

void ProbDenFunc::copyUOMFrom ( const ProbDenFunc )

◆ dimName()

virtual const char* ProbDenFunc::dimName ( int  dim) const
pure virtual

◆ drawRandomPos()

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

◆ fillPar()

virtual void ProbDenFunc::fillPar ( IOPar ) const
pure virtual

◆ getIndexTableFor()

void ProbDenFunc::getIndexTableFor ( const ProbDenFunc pdf,
TypeSet< int > &  tbl 
) const

tbl[0] tells what my index is for pdf's index '0'

◆ getTypeStr()

virtual const char* ProbDenFunc::getTypeStr ( ) const
pure virtual

◆ getUOMSymbol()

const char* ProbDenFunc::getUOMSymbol ( int  dim) const

◆ init()

void ProbDenFunc::init ( )
protected

◆ isCompatibleWith()

virtual bool ProbDenFunc::isCompatibleWith ( const ProbDenFunc ) const
virtual

◆ isEq()

virtual bool ProbDenFunc::isEq ( const ProbDenFunc ) const
protectedpure virtual

already checked for type, name, dim names and units

Implemented in SampledNDProbDenFunc, Sampled2DProbDenFunc, Sampled1DProbDenFunc, GaussianNDProbDenFunc, Gaussian2DProbDenFunc, and Gaussian1DProbDenFunc.

◆ isEqual()

virtual bool ProbDenFunc::isEqual ( const ProbDenFunc ) const
virtual

◆ normFac()

virtual float ProbDenFunc::normFac ( ) const
inlinevirtual

◆ nrDims()

virtual int ProbDenFunc::nrDims ( ) const
pure virtual

◆ prepareRandDrawing()

virtual void ProbDenFunc::prepareRandDrawing ( ) const
inlinevirtual

◆ readBulk()

virtual bool ProbDenFunc::readBulk ( od_istream ,
bool  binary 
)
inlinevirtual

◆ readUOMFromPar()

void ProbDenFunc::readUOMFromPar ( const IOPar )

◆ scale()

virtual void ProbDenFunc::scale ( float  )
inlinevirtual

◆ setDimName()

virtual void ProbDenFunc::setDimName ( int  dim,
const char *   
)
pure virtual

◆ setUOMSymbol()

void ProbDenFunc::setUOMSymbol ( int  dim,
const char *   
)

◆ sKeyNrDim()

static const char* ProbDenFunc::sKeyNrDim ( )
static

◆ usePar()

virtual bool ProbDenFunc::usePar ( const IOPar )
pure virtual

◆ value()

virtual float ProbDenFunc::value ( const TypeSet< float > &  ) const
pure virtual

◆ writeBulk()

virtual void ProbDenFunc::writeBulk ( od_ostream ,
bool  binary 
) const
inlinevirtual

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