OpendTect-6_4
6.4
|
MathFunction based on bend points. More...
Public Types | |
enum | InterpolType { Linear, Poly, Snap } |
enum | ExtrapolType { None, EndVal, ExtraPolGradient } |
Public Member Functions | |
BendPointBasedMathFunction (InterpolType t=Linear, ExtrapolType extr=EndVal) | |
void | setEmpty () |
int | size () const |
bool | isEmpty () const |
void | add (xT x, yT y) |
void | remove (int idx) |
yT | getValue (xT x) const |
const TypeSet< xT > & | xVals () const |
const TypeSet< yT > & | yVals () const |
InterpolType | interpolType () const |
ExtrapolType | extrapolateType () const |
bool | extrapolate () const |
void | setInterpolType (InterpolType t) |
void | setExtrapolateType (ExtrapolType t) |
virtual yT | getNDValue (const xT *p) const |
void | setXValue (int idx, xT x) |
Public Member Functions inherited from MathFunction< yT, xT > | |
virtual int | getNrDim () const |
Public Member Functions inherited from MathFunctionND< yT, xT > | |
virtual | ~MathFunctionND () |
Protected Member Functions | |
int | baseIdx (xT) const |
yT | snapVal (xT) const |
yT | interpVal (xT) const |
yT | outsideVal (xT) const |
Protected Attributes | |
InterpolType | itype_ |
ExtrapolType | extrapol_ |
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 |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from MathFunction< yT, xT >.
|
inlinevirtual |
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. 2019