OpendTect  7.0
Public Member Functions | Public Attributes | List of all members
ThirdOrderPoly Class Reference

A class for 3rd order polynomials on the form: a x^3 + b x^2 + c x + d. More...

Inheritance diagram for ThirdOrderPoly:
[legend]

Public Member Functions

 ThirdOrderPoly (float a_=0, float b_=0, float c_=0, float d_=0)
 
SecondOrderPolycreateDerivative () const
 
int getExtremePos (float &pos0, float &pos1) const
 
float getValue (float pos) const override
 
void setFromSamples (float y0, float y1, float y2, float y3)
 
- Public Member Functions inherited from MathFunction< RT, PT >
RT getNDValue (const PT *pos) const override
 
int getNrDim () const override
 
virtual RT getValue (PT) const =0
 
- Public Member Functions inherited from MathFunctionND< RT, PT >
virtual ~MathFunctionND ()
 

Public Attributes

float a
 
float b
 
float c
 
float d
 

Detailed Description

A class for 3rd order polynomials on the form: a x^3 + b x^2 + c x + d.

<>

Constructor & Destructor Documentation

◆ ThirdOrderPoly()

ThirdOrderPoly::ThirdOrderPoly ( float  a_ = 0,
float  b_ = 0,
float  c_ = 0,
float  d_ = 0 
)
inline

Member Function Documentation

◆ createDerivative()

SecondOrderPoly* ThirdOrderPoly::createDerivative ( ) const
inline

◆ getExtremePos()

int ThirdOrderPoly::getExtremePos ( float &  pos0,
float &  pos1 
) const
inline

◆ getValue()

float ThirdOrderPoly::getValue ( float  pos) const
inlineoverride

◆ setFromSamples()

void ThirdOrderPoly::setFromSamples ( float  y0,
float  y1,
float  y2,
float  y3 
)
inline

Fits the polynomial through the points. The points are considered to be sampled with y0 at x=-1 and y3 at x=2

Member Data Documentation

◆ a

float ThirdOrderPoly::a

◆ b

float ThirdOrderPoly::b

◆ c

float ThirdOrderPoly::c

◆ d

float ThirdOrderPoly::d

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