OpendTect-6_4  6.4
Classes | Functions
Math Namespace Reference

Classes

class  Expression
 Parsed Math expression. More...
 
class  ExpressionOperatorDesc
 Expression desc to build UI. More...
 
class  ExpressionOperatorDescGroup
 Group of similar expression descs. More...
 
class  ExpressionParser
 Parses a string with a mathematical expression. More...
 
class  Formula
 Math formula: (expression, inputs, units, calculation, storage). More...
 
class  SpecVar
 Special variables for Math Formulae/Expressions. More...
 
class  SpecVarSet
 Set of special variables for Math Formulae/Expressions. More...
 

Functions

unsigned int SetBits (unsigned int curflags, unsigned int mask, bool yn)
 
bool AreBitsSet (unsigned int curflags, unsigned int mask, bool all=true)
 
bool IsNormalNumber (float)
 
float PowerOf (float, float)
 
float ASin (float)
 
float ACos (float)
 
float Log (float)
 
float Log10 (float)
 
float Sqrt (float)
 
float BesselI0 (float)
 
float_complex Sqrt (const float_complex &)
 
float Exp (float)
 
float toDB (float)
 
unsigned int Abs (unsigned int i)
 
uint64_t Abs (uint64_t i)
 
unsigned int Abs (int i)
 
uint64_t Abs (int64_t i)
 
float Abs (float)
 
double Abs (double)
 
float Abs (float_complex)
 
float Floor (float)
 
double Floor (double)
 
float Ceil (float)
 
double Ceil (double)
 
float Atan2 (float y, float x)
 
double Atan2 (double y, double x)
 
float Atan2 (float_complex timeval)
 
float toDegrees (float r)
 
double toDegrees (double r)
 
float toRadians (float d)
 
double toRadians (double d)
 
float degFromNorth (float azimuth)
 
int LCMOf (int, int)
 
int HCFOf (int, int)
 
bool IsNormalNumber (double)
 
double PowerOf (double, double)
 
double ASin (double)
 
double ACos (double)
 
double Log (double)
 
double Log10 (double)
 
double Exp (double)
 
double Sqrt (double)
 
double toDB (double)
 
double BesselI0 (double)
 
template<class iT , class iPOW >
iT IntPowerOf (iT i, iPOW p)
 
double IntPowerOf (double, int)
 
float IntPowerOf (float, int)
 

Function Documentation

unsigned int Math::Abs ( unsigned int  i)
inline
uint64_t Math::Abs ( uint64_t  i)
inline
unsigned int Math::Abs ( int  i)
uint64_t Math::Abs ( int64_t  i)
float Math::Abs ( float  )
double Math::Abs ( double  )
float Math::Abs ( float_complex  )
float Math::ACos ( float  )

Checks the input range before calling acos, and does thus avoid nan's due to roundoff errors.

double Math::ACos ( double  )
bool Math::AreBitsSet ( unsigned int  curflags,
unsigned int  mask,
bool  all = true 
)

Returns wether the bits in the flag are set. If mask has multiple bits, the all boolean specifies if all bits are required.

float Math::ASin ( float  )

Checks the input range before calling asin, and does thus avoid nan's due to roundoff errors.

double Math::ASin ( double  )
float Math::Atan2 ( float  y,
float  x 
)
double Math::Atan2 ( double  y,
double  x 
)
float Math::Atan2 ( float_complex  timeval)
float Math::BesselI0 ( float  )

Zeroth order modified Bessel function of the first kind

double Math::BesselI0 ( double  )
float Math::Ceil ( float  )
double Math::Ceil ( double  )
float Math::degFromNorth ( float  azimuth)
inline
float Math::Exp ( float  )

Checks the input range before calling exp, if too large value is given, mUdf(float) is returned.

double Math::Exp ( double  )
float Math::Floor ( float  )
double Math::Floor ( double  )
int Math::HCFOf ( int  ,
int   
)

<Lowest Common Multiple.

template<class iT , class iPOW >
iT Math::IntPowerOf ( iT  i,
iPOW  p 
)
inline
double Math::IntPowerOf ( double  ,
int   
)
float Math::IntPowerOf ( float  ,
int   
)
bool Math::IsNormalNumber ( float  )
Returns
0 for for infinite, NaN, and that sort of crap
bool Math::IsNormalNumber ( double  )

<Highest Common Factor.

int Math::LCMOf ( int  ,
int   
)
float Math::Log ( float  )

Checks the input range before calling log, returns undefined if negative or zero value is given.

double Math::Log ( double  )
float Math::Log10 ( float  )

Checks the input range before calling log10, returns mUdf(float) if negative or zero value is given.

double Math::Log10 ( double  )
float Math::PowerOf ( float  ,
float   
)

PowerOf(-2,2) returns -4. This may be mathematically incorrect, it delivers continuity with negative numbers

double Math::PowerOf ( double  ,
double   
)
unsigned int Math::SetBits ( unsigned int  curflags,
unsigned int  mask,
bool  yn 
)

Takes curflags, sets/clears the bits in flag, and returns the composite value.

float Math::Sqrt ( float  )

Checks the input range before calling sqrt, if negative value is given, zero is returned.

float_complex Math::Sqrt ( const float_complex )
double Math::Sqrt ( double  )
float Math::toDB ( float  )
double Math::toDB ( double  )
float Math::toDegrees ( float  r)
inline
double Math::toDegrees ( double  r)
inline
float Math::toRadians ( float  d)
inline
double Math::toRadians ( double  d)
inline

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