Open CASCADE Technology  7.7.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_HArray1OfReal > Coefficients () const
 returns the coefficients in the Jacobi Base More...
 
Handle< TColStd_HArray2OfReal > FirstConstr () const
 returns the constraints at First More...
 
Handle< TColStd_HArray2OfReal > LastConstr () const
 returns the constraints at Last More...
 
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 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::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

◆ AverageError()

Standard_Real AdvApprox_SimpleApprox::AverageError ( const Standard_Integer  Index) const

◆ Coefficients()

Handle< TColStd_HArray1OfReal > AdvApprox_SimpleApprox::Coefficients ( ) const

returns the coefficients in the Jacobi Base

◆ Degree()

Standard_Integer AdvApprox_SimpleApprox::Degree ( ) const

◆ DifTab()

Handle< TColStd_HArray1OfReal > AdvApprox_SimpleApprox::DifTab ( ) const

◆ Dump()

void AdvApprox_SimpleApprox::Dump ( Standard_OStream o) const

display information on approximation

◆ FirstConstr()

Handle< TColStd_HArray2OfReal > AdvApprox_SimpleApprox::FirstConstr ( ) const

returns the constraints at First

◆ IsDone()

Standard_Boolean AdvApprox_SimpleApprox::IsDone ( ) const

◆ LastConstr()

Handle< TColStd_HArray2OfReal > AdvApprox_SimpleApprox::LastConstr ( ) const

returns the constraints at Last

◆ MaxError()

Standard_Real AdvApprox_SimpleApprox::MaxError ( const Standard_Integer  Index) const

◆ Perform()

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;

◆ SomTab()

Handle< TColStd_HArray1OfReal > AdvApprox_SimpleApprox::SomTab ( ) const

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