OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Sampled2DProbDenFunc Class Reference

Two dimensional PDF based on binned data. More...

Inheritance diagram for Sampled2DProbDenFunc:
[legend]

Public Member Functions

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

Array2DImpl< float > bins_
 
SamplingData< float > sd0_
 
SamplingData< float > sd1_
 
- Public Attributes inherited from ProbDenFunc2D
BufferString dim0nm_
 
BufferString dim1nm_
 

Protected Member Functions

virtual void drwRandPos (float &, float &) const
 
virtual const ArrayND< float > & getArrND () const
 
virtual const SamplingData< float > & getSampling (int d) const
 
virtual float gtVal (float, float) const
 
- Protected Member Functions inherited from ProbDenFunc2D
 ProbDenFunc2D (const char *vnm0="Dim 0", const char *vnm1="Dim 1")
 
 ProbDenFunc2D (const ProbDenFunc2D &pdf)
 
ProbDenFunc2Doperator= (const ProbDenFunc2D &)
 
- Protected Member Functions inherited from ProbDenFunc
 ProbDenFunc ()
 
 ProbDenFunc (const ProbDenFunc &)
 
void cleanup ()
 
void copyNameFrom (const ProbDenFunc &)
 
void init ()
 
- Protected Member Functions inherited from ArrayNDProbDenFunc
 ArrayNDProbDenFunc ()
 
 ArrayNDProbDenFunc (const ArrayNDProbDenFunc &oth)
 
virtual void doScale (float)
 
void fillCumBins () const
 
od_uint64 getBinPos (float) const
 
virtual float getNormFac () const
 
od_uint64 getRandBin () const
 
virtual bool gtIsEq (const ProbDenFunc &) const
 
void prepRndDrw () const
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Protected Attributes inherited from NamedObject
BufferString name_
 
- Protected Attributes inherited from ArrayNDProbDenFunc
TypeSet< float > avgpos_
 
float * cumbins_
 

Detailed Description

Two dimensional PDF based on binned data.

<>

Constructor & Destructor Documentation

◆ Sampled2DProbDenFunc() [1/3]

Sampled2DProbDenFunc::Sampled2DProbDenFunc ( )

◆ Sampled2DProbDenFunc() [2/3]

Sampled2DProbDenFunc::Sampled2DProbDenFunc ( const Array2D< float > &  )

◆ Sampled2DProbDenFunc() [3/3]

Sampled2DProbDenFunc::Sampled2DProbDenFunc ( const Sampled2DProbDenFunc )

Member Function Documentation

◆ averagePos()

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

Implements ProbDenFunc.

◆ canScale()

virtual bool Sampled2DProbDenFunc::canScale ( ) const
inlinevirtual

Reimplemented from ProbDenFunc.

◆ clone()

virtual Sampled2DProbDenFunc* Sampled2DProbDenFunc::clone ( ) const
inlinevirtual

Implements ProbDenFunc.

◆ copyFrom()

virtual void Sampled2DProbDenFunc::copyFrom ( const ProbDenFunc )
virtual

Reimplemented from ProbDenFunc2D.

◆ drwRandPos()

virtual void Sampled2DProbDenFunc::drwRandPos ( float &  ,
float &   
) const
protectedvirtual

Implements ProbDenFunc2D.

◆ fillPar()

virtual void Sampled2DProbDenFunc::fillPar ( IOPar ) const
virtual

Implements ProbDenFunc.

◆ getArrClone()

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

Implements ArrayNDProbDenFunc.

◆ getArrND()

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

Implements ArrayNDProbDenFunc.

◆ getSampling()

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

Implements ArrayNDProbDenFunc.

◆ getTypeStr()

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

Implements ProbDenFunc.

◆ gtVal()

virtual float Sampled2DProbDenFunc::gtVal ( float  ,
float   
) const
protectedvirtual

Implements ProbDenFunc2D.

◆ isEq()

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

already checked for type, name, dim names and units

Implements ProbDenFunc.

◆ normFac()

virtual float Sampled2DProbDenFunc::normFac ( ) const
inlinevirtual

Reimplemented from ProbDenFunc.

◆ operator=()

Sampled2DProbDenFunc& Sampled2DProbDenFunc::operator= ( const Sampled2DProbDenFunc )

◆ prepareRandDrawing()

virtual void Sampled2DProbDenFunc::prepareRandDrawing ( ) const
inlinevirtual

Reimplemented from ProbDenFunc.

◆ readBulk()

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

Reimplemented from ProbDenFunc.

◆ scale()

virtual void Sampled2DProbDenFunc::scale ( float  f)
inlinevirtual

Reimplemented from ProbDenFunc.

◆ typeStr()

static const char* Sampled2DProbDenFunc::typeStr ( )
inlinestatic

◆ usePar()

virtual bool Sampled2DProbDenFunc::usePar ( const IOPar )
virtual

Implements ProbDenFunc.

◆ writeBulk()

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

Reimplemented from ProbDenFunc.

Member Data Documentation

◆ bins_

Array2DImpl<float> Sampled2DProbDenFunc::bins_

◆ sd0_

SamplingData<float> Sampled2DProbDenFunc::sd0_

◆ sd1_

SamplingData<float> Sampled2DProbDenFunc::sd1_

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