Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
AdvApprox_SimpleApprox Class Reference

Approximate a function on an interval [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 average error resulting from approximating the function by the polynomial are computed. More...

#include <AdvApprox_SimpleApprox.hxx>

Public Member Functions

 AdvApprox_SimpleApprox (const int TotalDimension, const int TotalNumSS, const GeomAbs_Shape Continuity, const int WorkDegree, const int NbGaussPoints, const PLib_JacobiPolynomial &JacobiBase, const AdvApprox_EvaluatorFunction &Func)
 
void Perform (const NCollection_Array1< int > &LocalDimension, const NCollection_Array1< double > &LocalTolerancesArray, const double First, const double Last, const int MaxDegree)
 Constructs approximator tool.
 
bool IsDone () const
 
int Degree () const
 
occ::handle< NCollection_HArray1< double > > Coefficients () const
 returns the coefficients in the Jacobi Base
 
occ::handle< NCollection_HArray2< double > > FirstConstr () const
 returns the constraints at First
 
occ::handle< NCollection_HArray2< double > > LastConstr () const
 returns the constraints at Last
 
occ::handle< NCollection_HArray1< double > > SomTab () const
 
occ::handle< NCollection_HArray1< double > > DifTab () const
 
double MaxError (const int Index) const
 
double AverageError (const int Index) const
 
void Dump (Standard_OStream &o) const
 display information on approximation
 

Detailed Description

Approximate a function on an interval [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 average error resulting from approximating the function by the polynomial are computed.

Constructor & Destructor Documentation

◆ AdvApprox_SimpleApprox()

AdvApprox_SimpleApprox::AdvApprox_SimpleApprox ( const int TotalDimension,
const int TotalNumSS,
const GeomAbs_Shape Continuity,
const int WorkDegree,
const int NbGaussPoints,
const PLib_JacobiPolynomial & JacobiBase,
const AdvApprox_EvaluatorFunction & Func )

Member Function Documentation

◆ AverageError()

double AdvApprox_SimpleApprox::AverageError ( const int Index) const

◆ Coefficients()

occ::handle< NCollection_HArray1< double > > AdvApprox_SimpleApprox::Coefficients ( ) const

returns the coefficients in the Jacobi Base

◆ Degree()

int AdvApprox_SimpleApprox::Degree ( ) const

◆ DifTab()

occ::handle< NCollection_HArray1< double > > AdvApprox_SimpleApprox::DifTab ( ) const

◆ Dump()

void AdvApprox_SimpleApprox::Dump ( Standard_OStream & o) const

display information on approximation

◆ FirstConstr()

occ::handle< NCollection_HArray2< double > > AdvApprox_SimpleApprox::FirstConstr ( ) const

returns the constraints at First

◆ IsDone()

bool AdvApprox_SimpleApprox::IsDone ( ) const

◆ LastConstr()

occ::handle< NCollection_HArray2< double > > AdvApprox_SimpleApprox::LastConstr ( ) const

returns the constraints at Last

◆ MaxError()

double AdvApprox_SimpleApprox::MaxError ( const int Index) const

◆ Perform()

void AdvApprox_SimpleApprox::Perform ( const NCollection_Array1< int > & LocalDimension,
const NCollection_Array1< double > & LocalTolerancesArray,
const double First,
const double Last,
const int 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()

occ::handle< NCollection_HArray1< double > > AdvApprox_SimpleApprox::SomTab ( ) const

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