OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    math_FunctionSample Class Reference

    This class gives a default sample (constant difference of parameter) for a function defined between two bound A,B. More...

    #include <math_FunctionSample.hxx>

    Inheritance diagram for math_FunctionSample:

    Public Member Functions

     math_FunctionSample (const double A, const double B, const int N)
    virtual void Bounds (double &A, double &B) const
     Returns the bounds of parameters.
    int NbPoints () const
     Returns the number of sample points.
    virtual double GetParameter (const int Index) const
     Returns the value of parameter of the point of range Index : A + ((Index-1)/(NbPoints-1))*B. An exception is raised if Index<=0 or Index>NbPoints.

    Detailed Description

    This class gives a default sample (constant difference of parameter) for a function defined between two bound A,B.

    Constructor & Destructor Documentation

    ◆ math_FunctionSample()

    math_FunctionSample::math_FunctionSample ( const double A,
    const double B,
    const int N )

    Member Function Documentation

    ◆ Bounds()

    virtual void math_FunctionSample::Bounds ( double & A,
    double & B ) const
    virtual

    Returns the bounds of parameters.

    ◆ GetParameter()

    virtual double math_FunctionSample::GetParameter ( const int Index) const
    virtual

    Returns the value of parameter of the point of range Index : A + ((Index-1)/(NbPoints-1))*B. An exception is raised if Index<=0 or Index>NbPoints.

    Reimplemented in GeomLib_LogSample.

    ◆ NbPoints()

    int math_FunctionSample::NbPoints ( ) const

    Returns the number of sample points.


    The documentation for this class was generated from the following file: