Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

SeisBayesClass Class Reference

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

Inheritance diagram for SeisBayesClass:
Executor SequentialTask Task NamedObject CallBacker

List of all members.

Public Member Functions

 SeisBayesClass (const IOPar &)
 ~SeisBayesClass ()
int nextStep ()
const char * message () const
const char * nrDoneText () const
od_int64 nrDone () const
od_int64 totalNr () const

Static Public Member Functions

static const char * sKeyPDFID ()
static const char * sKeyAPProbID ()
static const char * sKeySeisInpID ()
static const char * sKeySeisOutID ()
static const char * sKeyPreNorm ()
static const char * sKeyPostNorm ()
static const char * sKeyPreScale ()

Protected Member Functions

bool getPDFs ()
void preScalePDFs ()
void postScaleProbs ()
bool getReaders ()
bool getWriters ()
SeisTrcReadergetReader (const char *, bool, int)
int readInpTrcs ()
int createOutput ()
int closeDown ()
float getPDFValue (int ipdf, int isamp, int icomp, bool inp=false) const
float getAPTrcVal (int ipdf, int isamp, int icomp)
void calcPerBinProbs ()
void calcProbs (int)
void calcClass ()
void calcDet ()
void cleanUp ()
void prepOutTrc (SeisTrc &, bool) const
void getClass (const TypeSet< float > &, int &, float &) const

Protected Attributes

bool is2d_
ObjectSet< ProbDenFuncinppdfs_
ObjectSet< ProbDenFuncpdfs_
ObjectSet< SeisTrcReaderrdrs_
ObjectSet< SeisTrcReaderaprdrs_
ObjectSet< SeisTrcWriterwrrs_
SeisTrcBufinptrcs_
SeisTrcBufaptrcs_
SeisTrcBufouttrcs_
const IOParpars_
ObjectSet< TypeSet< int > > pdfxtbls_
bool doprenorm_
bool dopostnorm_
TypeSet< float > prescales_
const int nrdims_
const int nrpdfs_
const bool needclass_
od_int64 nrdone_
od_int64 totalnr_
BufferString msg_
BufferStringSet pdfnames_
int initstep_
TypeSet< float > pdfinpvals_

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 ( const IOPar  ) 
SeisBayesClass::~SeisBayesClass (  ) 

Member Function Documentation

void SeisBayesClass::calcClass (  )  [protected]
void SeisBayesClass::calcDet (  )  [protected]
void SeisBayesClass::calcPerBinProbs (  )  [protected]
void SeisBayesClass::calcProbs ( int   )  [protected]
void SeisBayesClass::cleanUp (  )  [protected]
int SeisBayesClass::closeDown (  )  [protected]
int SeisBayesClass::createOutput (  )  [protected]
float SeisBayesClass::getAPTrcVal ( int  ipdf,
int  isamp,
int  icomp 
) [protected]
void SeisBayesClass::getClass ( const TypeSet< float > &  ,
int &  ,
float &   
) const [protected]
bool SeisBayesClass::getPDFs (  )  [protected]
float SeisBayesClass::getPDFValue ( int  ipdf,
int  isamp,
int  icomp,
bool  inp = false 
) const [protected]
SeisTrcReader* SeisBayesClass::getReader ( const char *  ,
bool  ,
int   
) [protected]
bool SeisBayesClass::getReaders (  )  [protected]
bool SeisBayesClass::getWriters (  )  [protected]
const char* SeisBayesClass::message (  )  const [virtual]

Reimplemented from Task.

int SeisBayesClass::nextStep (  )  [virtual]

Implements SequentialTask.

od_int64 SeisBayesClass::nrDone (  )  const [virtual]

Reimplemented from Task.

const char* SeisBayesClass::nrDoneText (  )  const [virtual]

Reimplemented from Task.

void SeisBayesClass::postScaleProbs (  )  [protected]
void SeisBayesClass::prepOutTrc ( SeisTrc ,
bool   
) const [protected]
void SeisBayesClass::preScalePDFs (  )  [protected]
int SeisBayesClass::readInpTrcs (  )  [protected]
static const char* SeisBayesClass::sKeyAPProbID (  )  [static]
static const char* SeisBayesClass::sKeyPDFID (  )  [static]
static const char* SeisBayesClass::sKeyPostNorm (  )  [static]
static const char* SeisBayesClass::sKeyPreNorm (  )  [static]
static const char* SeisBayesClass::sKeyPreScale (  )  [static]
static const char* SeisBayesClass::sKeySeisInpID (  )  [static]
static const char* SeisBayesClass::sKeySeisOutID (  )  [static]
od_int64 SeisBayesClass::totalNr (  )  const [virtual]

Reimplemented from Task.


Member Data Documentation

bool SeisBayesClass::dopostnorm_ [protected]
bool SeisBayesClass::doprenorm_ [protected]
int SeisBayesClass::initstep_ [protected]
bool SeisBayesClass::is2d_ [protected]
const bool SeisBayesClass::needclass_ [protected]
const int SeisBayesClass::nrdims_ [protected]
od_int64 SeisBayesClass::nrdone_ [protected]
const int SeisBayesClass::nrpdfs_ [protected]
const IOPar& SeisBayesClass::pars_ [protected]
TypeSet<float> SeisBayesClass::pdfinpvals_ [mutable, protected]
TypeSet<float> SeisBayesClass::prescales_ [protected]
od_int64 SeisBayesClass::totalnr_ [protected]