Open CASCADE Technology 7.7.2
Public Member Functions
Extrema_CCLocFOfLocECC2d Class Reference

#include <Extrema_CCLocFOfLocECC2d.hxx>

Inheritance diagram for Extrema_CCLocFOfLocECC2d:
Inheritance graph
[legend]

Public Member Functions

 Extrema_CCLocFOfLocECC2d (const Standard_Real thetol=1.0e-10)
 
 Extrema_CCLocFOfLocECC2d (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real thetol=1.0e-10)
 
void SetCurve (const Standard_Integer theRank, const Adaptor2d_Curve2d &C1)
 
void SetTolerance (const Standard_Real theTol)
 
virtual Standard_Integer NbVariables () const override
 Returns the number of variables of the function.
 
virtual Standard_Integer NbEquations () const override
 Returns the number of equations of the function.
 
virtual Standard_Boolean Value (const math_Vector &UV, math_Vector &F) override
 Calculate Fi(U,V).
 
Standard_Boolean Derivatives (const math_Vector &UV, math_Matrix &DF) override
 Calculate Fi'(U,V).
 
Standard_Boolean Values (const math_Vector &UV, math_Vector &F, math_Matrix &DF) override
 Calculate Fi(U,V) and Fi'(U,V).
 
virtual Standard_Integer GetStateNumber () override
 Save the found extremum.
 
Standard_Integer NbExt () const
 Return the number of found extrema.
 
Standard_Real SquareDistance (const Standard_Integer N) const
 Return the value of the Nth distance.
 
void Points (const Standard_Integer N, Extrema_POnCurv2d &P1, Extrema_POnCurv2d &P2) const
 Return the points of the Nth extreme distance.
 
Standard_Address CurvePtr (const Standard_Integer theRank) const
 Returns a pointer to the curve specified in the constructor or in SetCurve() method.
 
Standard_Real Tolerance () const
 Returns a tolerance specified in the constructor or in SetTolerance() method.
 
void SubIntervalInitialize (const math_Vector &theUfirst, const math_Vector &theUlast)
 Determines of boundaries of subinterval for find of root.
 
Standard_Real SearchOfTolerance (const Standard_Address C)
 Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
 
virtual Standard_Integer NbVariables () const =0
 Returns the number of variables of the function.
 
virtual Standard_Integer NbEquations () const =0
 Returns the number of equations of the function.
 
virtual Standard_Boolean Value (const math_Vector &X, math_Vector &F)=0
 Computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
 
virtual Standard_Boolean Derivatives (const math_Vector &X, math_Matrix &D)=0
 Returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.
 
virtual Standard_Boolean Values (const math_Vector &X, math_Vector &F, math_Matrix &D)=0
 returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
 
- Public Member Functions inherited from math_FunctionSet
virtual Standard_Integer NbVariables () const =0
 Returns the number of variables of the function.
 
virtual Standard_Integer NbEquations () const =0
 Returns the number of equations of the function.
 
virtual Standard_Boolean Value (const math_Vector &X, math_Vector &F)=0
 Computes the values <F> of the functions for the variable <X>. returns True if the computation was done successfully, False otherwise.
 
virtual Standard_Integer GetStateNumber ()
 Returns the state of the function corresponding to the latestcall of any methods associated with the function. This function is called by each of the algorithms described later which define the function Integer Algorithm::StateNumber(). The algorithm has the responsibility to call this function when it has found a solution (i.e. a root or a minimum) and has to maintain the association between the solution found and this StateNumber. Byu default, this method returns 0 (which means for the algorithm: no state has been saved). It is the responsibility of the programmer to decide if he needs to save the current state of the function and to return an Integer that allows retrieval of the state.
 
virtual ~math_FunctionSet ()
 

Constructor & Destructor Documentation

◆ Extrema_CCLocFOfLocECC2d() [1/2]

Extrema_CCLocFOfLocECC2d::Extrema_CCLocFOfLocECC2d ( const Standard_Real  thetol = 1.0e-10)

◆ Extrema_CCLocFOfLocECC2d() [2/2]

Extrema_CCLocFOfLocECC2d::Extrema_CCLocFOfLocECC2d ( const Adaptor2d_Curve2d C1,
const Adaptor2d_Curve2d C2,
const Standard_Real  thetol = 1.0e-10 
)

Member Function Documentation

◆ CurvePtr()

Standard_Address Extrema_CCLocFOfLocECC2d::CurvePtr ( const Standard_Integer  theRank) const

Returns a pointer to the curve specified in the constructor or in SetCurve() method.

◆ Derivatives()

Standard_Boolean Extrema_CCLocFOfLocECC2d::Derivatives ( const math_Vector UV,
math_Matrix DF 
)
overridevirtual

Calculate Fi'(U,V).

Implements math_FunctionSetWithDerivatives.

◆ GetStateNumber()

virtual Standard_Integer Extrema_CCLocFOfLocECC2d::GetStateNumber ( )
overridevirtual

Save the found extremum.

Reimplemented from math_FunctionSet.

◆ NbEquations()

virtual Standard_Integer Extrema_CCLocFOfLocECC2d::NbEquations ( ) const
overridevirtual

Returns the number of equations of the function.

Implements math_FunctionSetWithDerivatives.

◆ NbExt()

Standard_Integer Extrema_CCLocFOfLocECC2d::NbExt ( ) const

Return the number of found extrema.

◆ NbVariables()

virtual Standard_Integer Extrema_CCLocFOfLocECC2d::NbVariables ( ) const
overridevirtual

Returns the number of variables of the function.

Implements math_FunctionSetWithDerivatives.

◆ Points()

void Extrema_CCLocFOfLocECC2d::Points ( const Standard_Integer  N,
Extrema_POnCurv2d P1,
Extrema_POnCurv2d P2 
) const

Return the points of the Nth extreme distance.

◆ SearchOfTolerance()

Standard_Real Extrema_CCLocFOfLocECC2d::SearchOfTolerance ( const Standard_Address  C)

Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.

◆ SetCurve()

void Extrema_CCLocFOfLocECC2d::SetCurve ( const Standard_Integer  theRank,
const Adaptor2d_Curve2d C1 
)

◆ SetTolerance()

void Extrema_CCLocFOfLocECC2d::SetTolerance ( const Standard_Real  theTol)

◆ SquareDistance()

Standard_Real Extrema_CCLocFOfLocECC2d::SquareDistance ( const Standard_Integer  N) const

Return the value of the Nth distance.

◆ SubIntervalInitialize()

void Extrema_CCLocFOfLocECC2d::SubIntervalInitialize ( const math_Vector theUfirst,
const math_Vector theUlast 
)

Determines of boundaries of subinterval for find of root.

◆ Tolerance()

Standard_Real Extrema_CCLocFOfLocECC2d::Tolerance ( ) const

Returns a tolerance specified in the constructor or in SetTolerance() method.

◆ Value()

virtual Standard_Boolean Extrema_CCLocFOfLocECC2d::Value ( const math_Vector UV,
math_Vector F 
)
overridevirtual

Calculate Fi(U,V).

Implements math_FunctionSetWithDerivatives.

◆ Values()

Standard_Boolean Extrema_CCLocFOfLocECC2d::Values ( const math_Vector UV,
math_Vector F,
math_Matrix DF 
)
overridevirtual

Calculate Fi(U,V) and Fi'(U,V).

Implements math_FunctionSetWithDerivatives.


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