OpendTect  7.0
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 > &timesignal)
 
 Phase (const Array1DImpl< float_complex > &cfrequencies)
 
 ~Phase ()
 
bool calculate (bool unwrap=false)
 Available after execution - in the Bandwidth. More...
 
float getAvgPhase () const
 
const Array1DImpl< float > & getPhase () const
 
void setUnitDeg (bool indegrees)
 

Protected Member Functions

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

Protected Attributes

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

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() [1/2]

Phase::Phase ( const Array1DImpl< float_complex > &  cfrequencies)

◆ Phase() [2/2]

Phase::Phase ( const Array1DImpl< float > &  timesignal)

◆ ~Phase()

Phase::~Phase ( )

Member Function Documentation

◆ calculate()

bool Phase::calculate ( bool  unwrap = false)

Available after execution - in the Bandwidth.

◆ convert()

bool Phase::convert ( )
protected

◆ extract()

bool Phase::extract ( )
protected

◆ getAvgPhase()

float Phase::getAvgPhase ( ) const
inline

◆ getPhase()

const Array1DImpl<float>& Phase::getPhase ( ) const
inline

◆ init()

void Phase::init ( )
protected

◆ setUnitDeg()

void Phase::setUnitDeg ( bool  indegrees)
inline

◆ unWrap()

bool Phase::unWrap ( float  maxdph = 0.01777778f)
protected
Parameters
maxdphMaximum allowed phase difference between consecutive frequencies, in radians

Member Data Documentation

◆ avgphase_

float Phase::avgphase_
protected

◆ cfreq_

Array1DImpl<float_complex>& Phase::cfreq_
protected

◆ domfreqidx_

int Phase::domfreqidx_
protected

◆ indegrees_

bool Phase::indegrees_
protected

◆ phase_

Array1DImpl<float>& Phase::phase_
protected

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