Open CASCADE Technology
7.7.0
|
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... | |
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.
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 | ||
) |
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 |