OpendTect
7.0
|
MathFunction based on bend points. More...
Public Types | |
enum | ExtrapolType { None , EndVal , ExtraPolGradient } |
enum | InterpolType { Linear , Poly , Snap } |
Public Member Functions | |
BendPointBasedMathFunction (InterpolType t=Linear, ExtrapolType extr=EndVal) | |
void | add (xT x, yT y) |
void | add (xT x, yT y, bool checkforduplicates) |
bool | extrapolate () const |
ExtrapolType | extrapolateType () const |
yT | getNDValue (const xT *p) const override |
yT | getValue (xT x) const override |
InterpolType | interpolType () const |
bool | isEmpty () const |
void | remove (int idx) |
void | setEmpty () |
void | setExtrapolateType (ExtrapolType t) |
void | setInterpolType (InterpolType t) |
void | setXValue (int idx, xT x) |
int | size () const |
const TypeSet< xT > & | xVals () const |
const TypeSet< yT > & | yVals () const |
Public Member Functions inherited from MathFunction< yT, xT > | |
yT | getNDValue (const xT *pos) const override |
int | getNrDim () const override |
Public Member Functions inherited from MathFunctionND< RT, PT > | |
virtual | ~MathFunctionND () |
virtual RT | getNDValue (const PT *) const =0 |
Protected Member Functions | |
int | baseIdx (xT) const |
yT | interpVal (xT) const |
yT | outsideVal (xT) const |
yT | snapVal (xT) const |
Protected Attributes | |
ExtrapolType | extrapol_ |
InterpolType | itype_ |
TypeSet< xT > | x_ |
TypeSet< yT > | y_ |
MathFunction based on bend points.
The object maintains sorted positions (in X), so you cannot bluntly stuff X and Y in. You cannot change or remove positions; instead make a copy.
If the given point is outside the 'defined' X-range, the value can be undef or the first/last defined point's value, depending on the 'extrapol_' setting. If no point at all is defined you will always get undef.
You can add undefined Y-values, but not undef X-values (those add()'s simply return). Undef sections are therefore supported.
<>
enum BendPointBasedMathFunction::ExtrapolType |
enum BendPointBasedMathFunction::InterpolType |
|
inline |
void BendPointBasedMathFunction< xT, yT >::add | ( | xT | x, |
yT | y | ||
) |
void BendPointBasedMathFunction< xT, yT >::add | ( | xT | x, |
yT | y, | ||
bool | checkforduplicates | ||
) |
|
inlineprotected |
|
inline |
|
inline |
|
inlineoverride |
|
inlineoverridevirtual |
Implements MathFunction< yT, xT >.
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024