OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
DecompInput Class Reference

Public Member Functions

 DecompInput (const DecompInput &)
 
 DecompInput (const Setup &, int nrsamples, Stats::RandomGenerator *=nullptr)
 
 ~DecompInput ()
 
bool doDecompMethod (int nrsamples, float refstep, Array2D< float > &output, int outputattrib, float startfreq, float endfreq, float stepoutfreq, int startcomp, int endcomp)
 
DecompInputoperator= (const DecompInput &)
 

Static Public Member Functions

static const char * transMethodNamesStr (int)
 

Public Attributes

int halflen_ = 30
 
Setup setup_
 
int size_
 
float * values_
 

Private Member Functions

void addDecompInputs (const DecompInput &)
 
void addToComponent (ObjectSet< IMFComponent > &, int comp, int nrzeros) const
 
void addZeroComponents (ObjectSet< IMFComponent > &, int comp) const
 
bool calcAmplitudes (const ObjectSet< ObjectSet< IMFComponent > > &, const ObjectSet< IMFComponent > &imagcomps, ObjectSet< IMFComponent > &ampcomps) const
 
bool calcFrequencies (const ObjectSet< ObjectSet< IMFComponent > > &, const ObjectSet< IMFComponent > &imagcomps, ObjectSet< IMFComponent > &frequencycomponents, const float refstep) const
 
void computeStats (float &, float &) const
 
void createNoise (float stdev)
 
bool decompositionLoop (ObjectSet< IMFComponent > &, int maxnrimf, float stdevinput) const
 
bool doHilbert (const ObjectSet< ObjectSet< IMFComponent > > &, ObjectSet< IMFComponent > &imagcomp) const
 
bool dumpComponents (const ObjectSet< ObjectSet< IMFComponent > > &, const OrgTraceMinusAverage *) const
 
void findExtrema (int &nrmax, int &nrmin, int &nrzeros, bool symmetricboundary, MyPointBasedMathFunction &maxima, MyPointBasedMathFunction &minima) const
 
bool outputAttribute (const ObjectSet< ObjectSet< IMFComponent > > &, Array2D< float > &output, int outputattrib, float startfreq, float endfreq, float stepoutfreq, int startcomp, int outputcomp, float average) const
 
void readComponents (ObjectSet< ObjectSet< IMFComponent > > &) const
 
void replaceDecompInputs (const DecompInput &)
 
void rescaleDecompInput (float scaler)
 
void resetInput (const OrgTraceMinusAverage &)
 
void retrieveFromComponent (const ObjectSet< IMFComponent > &, int comp)
 
bool sortSpectrum (const float *unsortedamplitudes, int size, float *unsortedfrequencies, MyPointBasedMathFunction &sortedampspectrum) const
 
void stackCeemdComponents (const ObjectSet< ObjectSet< IMFComponent > > &, ObjectSet< IMFComponent > &, int nrimf) const
 
void stackEemdComponents (const ObjectSet< ObjectSet< IMFComponent > > &, ObjectSet< IMFComponent > &) const
 
void subtractDecompInputs (const DecompInput &)
 
void testFunction (int &nrmax, int &nrmin, int &nrzeros, MyPointBasedMathFunction &maxima, MyPointBasedMathFunction &minima) const
 
bool useGridding (const ObjectSet< ObjectSet< IMFComponent > > &, Array2D< float > &output, float startfreq, float endfreq, float stepoutfreq) const
 
bool usePolynomial (const ObjectSet< ObjectSet< IMFComponent > > &, Array2D< float > &output, float startfreq, float endfreq, float stepoutfreq) const
 

Private Attributes

Stats::RandomGeneratorgen_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ DecompInput() [1/2]

DecompInput::DecompInput ( const Setup ,
int  nrsamples,
Stats::RandomGenerator = nullptr 
)

◆ DecompInput() [2/2]

DecompInput::DecompInput ( const DecompInput )

◆ ~DecompInput()

DecompInput::~DecompInput ( )

Member Function Documentation

◆ addDecompInputs()

void DecompInput::addDecompInputs ( const DecompInput )
private

◆ addToComponent()

void DecompInput::addToComponent ( ObjectSet< IMFComponent > &  ,
int  comp,
int  nrzeros 
) const
private

◆ addZeroComponents()

void DecompInput::addZeroComponents ( ObjectSet< IMFComponent > &  ,
int  comp 
) const
private

◆ calcAmplitudes()

bool DecompInput::calcAmplitudes ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
const ObjectSet< IMFComponent > &  imagcomps,
ObjectSet< IMFComponent > &  ampcomps 
) const
private

◆ calcFrequencies()

bool DecompInput::calcFrequencies ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
const ObjectSet< IMFComponent > &  imagcomps,
ObjectSet< IMFComponent > &  frequencycomponents,
const float  refstep 
) const
private

◆ computeStats()

void DecompInput::computeStats ( float &  ,
float &   
) const
private

◆ createNoise()

void DecompInput::createNoise ( float  stdev)
private

◆ decompositionLoop()

bool DecompInput::decompositionLoop ( ObjectSet< IMFComponent > &  ,
int  maxnrimf,
float  stdevinput 
) const
private

◆ doDecompMethod()

bool DecompInput::doDecompMethod ( int  nrsamples,
float  refstep,
Array2D< float > &  output,
int  outputattrib,
float  startfreq,
float  endfreq,
float  stepoutfreq,
int  startcomp,
int  endcomp 
)

◆ doHilbert()

bool DecompInput::doHilbert ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
ObjectSet< IMFComponent > &  imagcomp 
) const
private

◆ dumpComponents()

bool DecompInput::dumpComponents ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
const OrgTraceMinusAverage  
) const
private

◆ findExtrema()

void DecompInput::findExtrema ( int &  nrmax,
int &  nrmin,
int &  nrzeros,
bool  symmetricboundary,
MyPointBasedMathFunction maxima,
MyPointBasedMathFunction minima 
) const
private

◆ operator=()

DecompInput& DecompInput::operator= ( const DecompInput )

◆ outputAttribute()

bool DecompInput::outputAttribute ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
Array2D< float > &  output,
int  outputattrib,
float  startfreq,
float  endfreq,
float  stepoutfreq,
int  startcomp,
int  outputcomp,
float  average 
) const
private

◆ readComponents()

void DecompInput::readComponents ( ObjectSet< ObjectSet< IMFComponent > > &  ) const
private

◆ replaceDecompInputs()

void DecompInput::replaceDecompInputs ( const DecompInput )
private

◆ rescaleDecompInput()

void DecompInput::rescaleDecompInput ( float  scaler)
private

◆ resetInput()

void DecompInput::resetInput ( const OrgTraceMinusAverage )
private

◆ retrieveFromComponent()

void DecompInput::retrieveFromComponent ( const ObjectSet< IMFComponent > &  ,
int  comp 
)
private

◆ sortSpectrum()

bool DecompInput::sortSpectrum ( const float *  unsortedamplitudes,
int  size,
float *  unsortedfrequencies,
MyPointBasedMathFunction sortedampspectrum 
) const
private

◆ stackCeemdComponents()

void DecompInput::stackCeemdComponents ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
ObjectSet< IMFComponent > &  ,
int  nrimf 
) const
private

◆ stackEemdComponents()

void DecompInput::stackEemdComponents ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
ObjectSet< IMFComponent > &   
) const
private

◆ subtractDecompInputs()

void DecompInput::subtractDecompInputs ( const DecompInput )
private

◆ testFunction()

void DecompInput::testFunction ( int &  nrmax,
int &  nrmin,
int &  nrzeros,
MyPointBasedMathFunction maxima,
MyPointBasedMathFunction minima 
) const
private

◆ transMethodNamesStr()

static const char* DecompInput::transMethodNamesStr ( int  )
static

◆ useGridding()

bool DecompInput::useGridding ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
Array2D< float > &  output,
float  startfreq,
float  endfreq,
float  stepoutfreq 
) const
private

◆ usePolynomial()

bool DecompInput::usePolynomial ( const ObjectSet< ObjectSet< IMFComponent > > &  ,
Array2D< float > &  output,
float  startfreq,
float  endfreq,
float  stepoutfreq 
) const
private

Member Data Documentation

◆ gen_

Stats::RandomGenerator* DecompInput::gen_
private

◆ halflen_

int DecompInput::halflen_ = 30

◆ setup_

Setup DecompInput::setup_

◆ size_

int DecompInput::size_

◆ values_

float* DecompInput::values_

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