OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SeisBayesClass Class Reference

Bayesian inversion/classification for seismic data using PDFs. More...

Inheritance diagram for SeisBayesClass:
[legend]

Public Member Functions

 SeisBayesClass (const IOPar &)
 
 ~SeisBayesClass ()
 
int nextStep () override
 
od_int64 nrDone () const override
 
od_int64 totalNr () const override
 
uiString uiMessage () const override
 will be message() again in 7.x More...
 
uiString uiNrDoneText () const override
 will be nrDoneText() in 7.x More...
 
- Public Member Functions inherited from Executor
 Executor (const char *nm)
 
virtual ~Executor ()
 
int doStep () override
 
bool execute () override
 
bool go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
bool go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=nullptr)
 
virtual ~SequentialTask ()
 
bool execute () override
 
- Public Member Functions inherited from ReportingTask
virtual ~ReportingTask ()
 
void getProgress (const ReportingTask &)
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual void controlWork (Control)
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
virtual uiRetVal errorWithDetails () const
 
virtual Control getState () const
 
bool workControlEnabled () const
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) 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 detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- 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
 

Static Public Member Functions

static const char * sKeyAPProbID ()
 
static const char * sKeyPDFID ()
 
static const char * sKeyPostNorm ()
 
static const char * sKeyPreNorm ()
 
static const char * sKeyPreScale ()
 
static const char * sKeySeisInpID ()
 
static const char * sKeySeisOutID ()
 
- Static Public Member Functions inherited from SequentialTask
static int ErrorOccurred ()
 
static int Finished ()
 
static int MoreToDo ()
 
static int WarningAvailable ()
 
- Static Public Member Functions inherited from Task
static uiString stdNrDoneText ()
 
static uiString uiStdNrDoneText ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

void calcClass ()
 
void calcDet ()
 
void calcPerBinProbs ()
 
void calcProbs (int)
 
void cleanUp ()
 
int closeDown ()
 
int createOutput ()
 
float getAPTrcVal (int ipdf, int isamp, int icomp)
 
void getClass (const TypeSet< float > &, int &, float &) const
 
bool getPDFs ()
 
float getPDFValue (int ipdf, int isamp, int icomp, bool inp=false) const
 
SeisTrcReadergetReader (const char *, bool, int)
 
bool getReaders ()
 
bool getWriters ()
 
void postScaleProbs ()
 
void prepOutTrc (SeisTrc &, bool) const
 
void preScalePDFs ()
 
int readInpTrcs ()
 
- Protected Member Functions inherited from Executor
virtual bool goImpl (od_ostream *, bool, bool, int)
 
- Protected Member Functions inherited from ReportingTask
 ReportingTask (const char *nm=nullptr)
 
void incrementProgress ()
 
ProgressMeterprogressMeter () const
 
void reportProgressFinished ()
 
void reportProgressStarted ()
 
void resetProgress ()
 
void setProgressMeter (ProgressMeter *) override
 Must be called before execute() More...
 
void updateProgressMeter (bool forced=false, std::int64_t *totalnr=0)
 
void updateReportedName ()
 
- Protected Member Functions inherited from Task
 Task (const char *nm=nullptr)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Protected Attributes

ObjectSet< SeisTrcReaderaprdrs_
 
SeisTrcBufaptrcs_
 
bool dopostnorm_
 
bool doprenorm_
 
int initstep_
 
ObjectSet< ProbDenFuncinppdfs_
 
SeisTrcBufinptrcs_
 
bool is2d_
 
uiString msg_
 
const bool needclass_
 
const int nrdims_
 
od_int64 nrdone_
 
const int nrpdfs_
 
SeisTrcBufouttrcs_
 
const IOParpars_
 
TypeSet< float > pdfinpvals_
 
BufferStringSet pdfnames_
 
ObjectSet< ProbDenFuncpdfs_
 
ObjectSet< TypeSet< int > > pdfxtbls_
 
TypeSet< float > prescales_
 
ObjectSet< SeisTrcReaderrdrs_
 
od_int64 totalnr_
 
ObjectSet< SeisTrcWriterwrrs_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run , Pause , Stop }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Public Attributes inherited from Executor
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 
Notifier< Executorprestep
 
- Public Attributes inherited from ReportingTask
Notifier< ReportingTaskprogressUpdated
 

Detailed Description

Bayesian inversion/classification for seismic data using PDFs.

The IOPar must contain the input/output, in IOObj IDs: mGetSeisBayesPDFIDKey(nr) - the input ProbDenFunc's mGetSeisBayesSeisInpIDKey(nr) - for each dimension of the PDF in the order of the first PDF mGetSeisBayesSeisOutIDKey(nr) - outputs in a specific sequence.

The outputs are all optional, but have a specific number: 0 .. N-1 = the Probability output for PDF 0 .. N-1 N = the Classification N+1 = the Classification confidence N+2 = the Determination confidence: sum of the input PDF values

<>

Constructor & Destructor Documentation

◆ SeisBayesClass()

SeisBayesClass::SeisBayesClass ( const IOPar )

◆ ~SeisBayesClass()

SeisBayesClass::~SeisBayesClass ( )

Member Function Documentation

◆ calcClass()

void SeisBayesClass::calcClass ( )
protected

◆ calcDet()

void SeisBayesClass::calcDet ( )
protected

◆ calcPerBinProbs()

void SeisBayesClass::calcPerBinProbs ( )
protected

◆ calcProbs()

void SeisBayesClass::calcProbs ( int  )
protected

◆ cleanUp()

void SeisBayesClass::cleanUp ( )
protected

◆ closeDown()

int SeisBayesClass::closeDown ( )
protected

◆ createOutput()

int SeisBayesClass::createOutput ( )
protected

◆ getAPTrcVal()

float SeisBayesClass::getAPTrcVal ( int  ipdf,
int  isamp,
int  icomp 
)
protected

◆ getClass()

void SeisBayesClass::getClass ( const TypeSet< float > &  ,
int &  ,
float &   
) const
protected

◆ getPDFs()

bool SeisBayesClass::getPDFs ( )
protected

◆ getPDFValue()

float SeisBayesClass::getPDFValue ( int  ipdf,
int  isamp,
int  icomp,
bool  inp = false 
) const
protected

◆ getReader()

SeisTrcReader* SeisBayesClass::getReader ( const char *  ,
bool  ,
int   
)
protected

◆ getReaders()

bool SeisBayesClass::getReaders ( )
protected

◆ getWriters()

bool SeisBayesClass::getWriters ( )
protected

◆ nextStep()

int SeisBayesClass::nextStep ( )
overridevirtual
Return values
MoreToDo()Not finished. Call me again.
Finished()Nothing more to do.
ErrorOccurred()Something went wrong.
Note
if function returns a value greater than cMoreToDo(), it should be interpreted as cMoreToDo().

Implements SequentialTask.

◆ nrDone()

od_int64 SeisBayesClass::nrDone ( ) const
overridevirtual
Note
nrDone is only used for displaying progress and will be compared to totalNr to show user how large part of the task that is finished.

Reimplemented from Task.

◆ postScaleProbs()

void SeisBayesClass::postScaleProbs ( )
protected

◆ prepOutTrc()

void SeisBayesClass::prepOutTrc ( SeisTrc ,
bool   
) const
protected

◆ preScalePDFs()

void SeisBayesClass::preScalePDFs ( )
protected

◆ readInpTrcs()

int SeisBayesClass::readInpTrcs ( )
protected

◆ sKeyAPProbID()

static const char* SeisBayesClass::sKeyAPProbID ( )
static

◆ sKeyPDFID()

static const char* SeisBayesClass::sKeyPDFID ( )
static

◆ sKeyPostNorm()

static const char* SeisBayesClass::sKeyPostNorm ( )
static

◆ sKeyPreNorm()

static const char* SeisBayesClass::sKeyPreNorm ( )
static

◆ sKeyPreScale()

static const char* SeisBayesClass::sKeyPreScale ( )
static

◆ sKeySeisInpID()

static const char* SeisBayesClass::sKeySeisInpID ( )
static

◆ sKeySeisOutID()

static const char* SeisBayesClass::sKeySeisOutID ( )
static

◆ totalNr()

od_int64 SeisBayesClass::totalNr ( ) const
overridevirtual

Reimplemented from Task.

◆ uiMessage()

uiString SeisBayesClass::uiMessage ( ) const
overridevirtual

will be message() again in 7.x

Reimplemented from Task.

◆ uiNrDoneText()

uiString SeisBayesClass::uiNrDoneText ( ) const
overridevirtual

will be nrDoneText() in 7.x

Reimplemented from Task.

Member Data Documentation

◆ aprdrs_

ObjectSet<SeisTrcReader> SeisBayesClass::aprdrs_
protected

◆ aptrcs_

SeisTrcBuf& SeisBayesClass::aptrcs_
protected

◆ dopostnorm_

bool SeisBayesClass::dopostnorm_
protected

◆ doprenorm_

bool SeisBayesClass::doprenorm_
protected

◆ initstep_

int SeisBayesClass::initstep_
protected

◆ inppdfs_

ObjectSet<ProbDenFunc> SeisBayesClass::inppdfs_
protected

◆ inptrcs_

SeisTrcBuf& SeisBayesClass::inptrcs_
protected

◆ is2d_

bool SeisBayesClass::is2d_
protected

◆ msg_

uiString SeisBayesClass::msg_
protected

◆ needclass_

const bool SeisBayesClass::needclass_
protected

◆ nrdims_

const int SeisBayesClass::nrdims_
protected

◆ nrdone_

od_int64 SeisBayesClass::nrdone_
protected

◆ nrpdfs_

const int SeisBayesClass::nrpdfs_
protected

◆ outtrcs_

SeisTrcBuf& SeisBayesClass::outtrcs_
protected

◆ pars_

const IOPar& SeisBayesClass::pars_
protected

◆ pdfinpvals_

TypeSet<float> SeisBayesClass::pdfinpvals_
mutableprotected

◆ pdfnames_

BufferStringSet SeisBayesClass::pdfnames_
protected

◆ pdfs_

ObjectSet<ProbDenFunc> SeisBayesClass::pdfs_
protected

◆ pdfxtbls_

ObjectSet< TypeSet<int> > SeisBayesClass::pdfxtbls_
protected

◆ prescales_

TypeSet<float> SeisBayesClass::prescales_
protected

◆ rdrs_

ObjectSet<SeisTrcReader> SeisBayesClass::rdrs_
protected

◆ totalnr_

od_int64 SeisBayesClass::totalnr_
protected

◆ wrrs_

ObjectSet<SeisTrcWriter> SeisBayesClass::wrrs_
protected

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