Open CASCADE Technology  6.9.0
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. More...

#include <AdvApprox_SimpleApprox.hxx>

Public Member Functions

 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. More...
 
Standard_Boolean IsDone () const
 
Standard_Integer Degree () const
 
Handle< TColStd_HArray1OfRealCoefficients () const
 returns the coefficients in the Jacobi Base More...
 
Handle< TColStd_HArray2OfRealFirstConstr () const
 returns the constraints at First More...
 
Handle< TColStd_HArray2OfRealLastConstr () const
 returns the constraints at Last More...
 
Handle< TColStd_HArray1OfRealSomTab () const
 
Handle< TColStd_HArray1OfRealDifTab () 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 More...
 

Detailed Description

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.

Constructor & Destructor Documentation

AdvApprox_SimpleApprox::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 
)

Member Function Documentation

Standard_Real AdvApprox_SimpleApprox::AverageError ( const Standard_Integer  Index) const
Handle< TColStd_HArray1OfReal > AdvApprox_SimpleApprox::Coefficients ( ) const

returns the coefficients in the Jacobi Base

Standard_Integer AdvApprox_SimpleApprox::Degree ( ) const
Handle< TColStd_HArray1OfReal > AdvApprox_SimpleApprox::DifTab ( ) const
void AdvApprox_SimpleApprox::Dump ( Standard_OStream o) const

display information on approximation

Handle< TColStd_HArray2OfReal > AdvApprox_SimpleApprox::FirstConstr ( ) const

returns the constraints at First

Standard_Boolean AdvApprox_SimpleApprox::IsDone ( ) const
Handle< TColStd_HArray2OfReal > AdvApprox_SimpleApprox::LastConstr ( ) const

returns the constraints at Last

Standard_Real AdvApprox_SimpleApprox::MaxError ( const Standard_Integer  Index) const
void AdvApprox_SimpleApprox::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;

Handle< TColStd_HArray1OfReal > AdvApprox_SimpleApprox::SomTab ( ) const

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