OpendTect  7.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SampledNDProbDenFunc Class Reference

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

Inheritance diagram for SampledNDProbDenFunc:
[legend]

Public Member Functions

 SampledNDProbDenFunc ()
 
 SampledNDProbDenFunc (const ArrayND< float > &)
 
 SampledNDProbDenFunc (const SampledNDProbDenFunc &)
 
 SampledNDProbDenFunc (int nrdims)
 
float averagePos (int dim) const override
 
bool canScale () const override
 
SampledNDProbDenFuncclone () const override
 
void copyFrom (const ProbDenFunc &) override
 
void drawRandomPos (TypeSet< float > &) const override
 
void fillPar (IOPar &) const override
 
const char * getTypeStr () const override
 
bool hasLimits () const override
 
bool isEq (const ProbDenFunc &oth) const override
 already checked for type, name, dim names and units More...
 
float normFac () const override
 
int nrDims () const override
 
SampledNDProbDenFuncoperator= (const SampledNDProbDenFunc &)
 
void prepareRandDrawing () const override
 
bool readBulk (od_istream &, bool binary) override
 
void scale (float f) override
 
void setND (int *idxs, float val)
 
float stddevPos (int) const override
 
bool usePar (const IOPar &) override
 
float value (const TypeSet< float > &) const override
 
void writeBulk (od_ostream &, bool binary) const override
 
- Public Member Functions inherited from ProbDenFunc
virtual ~ProbDenFunc ()
 
const char * dimName (int dim) const
 
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 setDimName (int dim, const char *)
 
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 &)
 
const name_typename () const override
 
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
 
ArrayND< float > * getArrClone () const
 
float getAveragePos (int dim) const
 
ArrayND< float > & getData ()
 
const ArrayND< float > & getData () const
 
Interval< float > getRange (int dim) const
 
ArrayNDProbDenFuncoperator= (const ArrayNDProbDenFunc &)
 
bool readBulkData (od_istream &, bool)
 
SamplingData< float > & sampling (int dim)
 
const SamplingData< float > & sampling (int dim) const
 
void setRange (int dim, const StepInterval< float > &)
 
bool setSize (const int *, int sz)
 
bool setSize (const TypeSet< int > &)
 
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)
 

Private Member Functions

const ArrayND< float > & getArrND () const override
 

Private Attributes

ArrayNDImpl< float > bins_
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Protected Member Functions inherited from ProbDenFunc
 ProbDenFunc ()
 
 ProbDenFunc (const ProbDenFunc &)
 
- Protected Member Functions inherited from ArrayNDProbDenFunc
 ArrayNDProbDenFunc (const ArrayNDProbDenFunc &)
 
 ArrayNDProbDenFunc (int nrdims)
 
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
 
int nrDims_ () const
 
void prepRndDrw () const
 
- Protected Attributes inherited from NamedObject
BufferString name_
 
- Protected Attributes inherited from ArrayNDProbDenFunc
float * cumbins_ = nullptr
 
Stats::RandomGeneratorgen_
 

Detailed Description

Multi-dimensional PDF based on binned data.

<>

Constructor & Destructor Documentation

◆ SampledNDProbDenFunc() [1/4]

SampledNDProbDenFunc::SampledNDProbDenFunc ( int  nrdims)

◆ SampledNDProbDenFunc() [2/4]

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

◆ SampledNDProbDenFunc() [3/4]

SampledNDProbDenFunc::SampledNDProbDenFunc ( const SampledNDProbDenFunc )

◆ SampledNDProbDenFunc() [4/4]

SampledNDProbDenFunc::SampledNDProbDenFunc ( )

Member Function Documentation

◆ averagePos()

float SampledNDProbDenFunc::averagePos ( int  dim) const
inlineoverridevirtual

Implements ProbDenFunc.

◆ canScale()

bool SampledNDProbDenFunc::canScale ( ) const
inlineoverridevirtual

Reimplemented from ProbDenFunc.

◆ clone()

SampledNDProbDenFunc* SampledNDProbDenFunc::clone ( ) const
inlineoverridevirtual

Implements ProbDenFunc.

◆ copyFrom()

void SampledNDProbDenFunc::copyFrom ( const ProbDenFunc )
overridevirtual

Implements ProbDenFunc.

◆ drawRandomPos()

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

Implements ProbDenFunc.

◆ fillPar()

void SampledNDProbDenFunc::fillPar ( IOPar ) const
overridevirtual

Implements ProbDenFunc.

◆ getArrND()

const ArrayND<float>& SampledNDProbDenFunc::getArrND ( ) const
inlineoverrideprivatevirtual

Implements ArrayNDProbDenFunc.

◆ getTypeStr()

const char* SampledNDProbDenFunc::getTypeStr ( ) const
inlineoverridevirtual

Implements ProbDenFunc.

◆ hasLimits()

bool SampledNDProbDenFunc::hasLimits ( ) const
inlineoverridevirtual

Implements ProbDenFunc.

◆ isEq()

bool SampledNDProbDenFunc::isEq ( const ProbDenFunc ) const
inlineoverridevirtual

already checked for type, name, dim names and units

Implements ProbDenFunc.

◆ normFac()

float SampledNDProbDenFunc::normFac ( ) const
inlineoverridevirtual

Reimplemented from ProbDenFunc.

◆ nrDims()

int SampledNDProbDenFunc::nrDims ( ) const
inlineoverridevirtual

Implements ProbDenFunc.

◆ operator=()

SampledNDProbDenFunc& SampledNDProbDenFunc::operator= ( const SampledNDProbDenFunc )

◆ prepareRandDrawing()

void SampledNDProbDenFunc::prepareRandDrawing ( ) const
inlineoverridevirtual

Reimplemented from ProbDenFunc.

◆ readBulk()

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

Reimplemented from ProbDenFunc.

◆ scale()

void SampledNDProbDenFunc::scale ( float  f)
inlineoverridevirtual

Reimplemented from ProbDenFunc.

◆ setND()

void SampledNDProbDenFunc::setND ( int *  idxs,
float  val 
)
inline

◆ stddevPos()

float SampledNDProbDenFunc::stddevPos ( int  ) const
inlineoverridevirtual

Implements ProbDenFunc.

◆ typeStr()

static const char* SampledNDProbDenFunc::typeStr ( )
inlinestatic

◆ usePar()

bool SampledNDProbDenFunc::usePar ( const IOPar )
overridevirtual

Implements ProbDenFunc.

◆ value()

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

Implements ProbDenFunc.

◆ writeBulk()

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

Reimplemented from ProbDenFunc.

Member Data Documentation

◆ bins_

ArrayNDImpl<float> SampledNDProbDenFunc::bins_
private

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