Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
AdvApprox_SimpleApprox Class Reference

Approximate a function on an intervall [First,Last]
The result is a simple polynomial whose degree is as low as
possible to satisfy the required tolerance and the
maximum degree. The maximum error and the averrage error
resulting from approximating the function by the polynomial are computed

#include <AdvApprox_SimpleApprox.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC AdvApprox_SimpleApprox (const Standard_Integer TotalDimension, const Standard_Integer TotalNumSS, const GeomAbs_Shape Continuity, const Standard_Integer WorkDegree, const Standard_Integer NbGaussPoints, const Handle< PLib_JacobiPolynomial > &JacobiBase, const AdvApprox_EvaluatorFunction &Func)
void Perform (const TColStd_Array1OfInteger &LocalDimension, const TColStd_Array1OfReal &LocalTolerancesArray, const Standard_Real First, const Standard_Real Last, const Standard_Integer MaxDegree)
 Constructs approximator tool.

Warning:
the Func should be valid reference to object of type
inherited from class EvaluatorFunction from Approx
with life time longer than that of the approximator tool;


Standard_Boolean IsDone () const
Standard_Integer Degree () const
Handle_TColStd_HArray1OfReal Coefficients () const
 returns the coefficients in the Jacobi Base

Handle_TColStd_HArray2OfReal FirstConstr () const
 returns the constraints at First

Handle_TColStd_HArray2OfReal LastConstr () const
 returns the constraints at Last

Handle_TColStd_HArray1OfReal SomTab () const
Handle_TColStd_HArray1OfReal DifTab () const
Standard_Real MaxError (const Standard_Integer Index) const
Standard_Real AverageError (const Standard_Integer Index) const
void Dump (Standard_OStream &o) const
 display information on approximation


Constructor & Destructor Documentation


Member Function Documentation

Handle_TColStd_HArray1OfReal AdvApprox_SimpleApprox::Coefficients ( ) const
Handle_TColStd_HArray1OfReal AdvApprox_SimpleApprox::DifTab ( ) const
Handle_TColStd_HArray2OfReal AdvApprox_SimpleApprox::FirstConstr ( ) const
Handle_TColStd_HArray2OfReal AdvApprox_SimpleApprox::LastConstr ( ) const
Handle_TColStd_HArray1OfReal AdvApprox_SimpleApprox::SomTab ( ) const

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