OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Phase Class Reference

Phase calculates the phase distribution of a N-dimensional signal. The phase is the inverse tangent of the ratio between imaginary and real parts of the signal. More...

Public Member Functions

 Phase (const Array1DImpl< float_complex > &cfrequencies)
 
 Phase (const Array1DImpl< float > &timesignal)
 
 ~Phase ()
 
void setUnitDeg (bool indegrees)
 
bool calculate ()
 Available after execution - in the Bandwidth. More...
 
float getAvgPhase () const
 
const Array1DImpl< float > & getPhase () const
 

Protected Member Functions

void init ()
 
bool extract ()
 
bool convert ()
 
bool unWrap (float maxdph=0.01777778f)
 

Protected Attributes

Array1DImpl< float_complex > & cfreq_
 
Array1DImpl< float > & phase_
 
int domfreqidx_
 
float avgphase_
 
bool indegrees_
 

Detailed Description

Phase calculates the phase distribution of a N-dimensional signal. The phase is the inverse tangent of the ratio between imaginary and real parts of the signal.

Phase is not reversible

Constructor & Destructor Documentation

Phase::Phase ( const Array1DImpl< float_complex > &  cfrequencies)
Phase::Phase ( const Array1DImpl< float > &  timesignal)
Phase::~Phase ( )

Member Function Documentation

bool Phase::calculate ( )

Available after execution - in the Bandwidth.

bool Phase::convert ( )
protected
bool Phase::extract ( )
protected
float Phase::getAvgPhase ( ) const
inline
const Array1DImpl<float>& Phase::getPhase ( ) const
inline
void Phase::init ( )
protected
void Phase::setUnitDeg ( bool  indegrees)
inline
bool Phase::unWrap ( float  maxdph = 0.01777778f)
protected
Parameters
maxdphMaximum allowed phase difference between consecutive frequencies, in radians

Member Data Documentation

float Phase::avgphase_
protected
Array1DImpl<float_complex>& Phase::cfreq_
protected
int Phase::domfreqidx_
protected
bool Phase::indegrees_
protected
Array1DImpl<float>& Phase::phase_
protected

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