ndcurves 2.3.0
create and manipulate spline and bezier curves.
Loading...
Searching...
No Matches
Bern< Numeric > Struct Template Reference

#include <ndcurves/bernstein.h>

Public Member Functions

 Bern ()
 Bern (const unsigned int m, const unsigned int i)
virtual ~Bern ()
Numeric operator() (const Numeric u) const
 Evaluation of Bernstein polynomial at value u.
virtual bool operator== (const Bern &other) const
 Check if actual Bernstein polynomial and other are approximately equal.
virtual bool operator!= (const Bern &other) const
 Check if actual Bernstein polynomial and other are different.
template<class Archive>
void serialize (Archive &ar, const unsigned int version)

Public Attributes

Numeric m_minus_i
Numeric i_
Numeric bin_m_i_

Friends

class boost::serialization::access

Constructor & Destructor Documentation

◆ Bern() [1/2]

template<typename Numeric = double>
Bern< Numeric >::Bern ( )
inline

◆ Bern() [2/2]

template<typename Numeric = double>
Bern< Numeric >::Bern ( const unsigned int m,
const unsigned int i )
inline

◆ ~Bern()

template<typename Numeric = double>
virtual Bern< Numeric >::~Bern ( )
inlinevirtual

Member Function Documentation

◆ operator!=()

template<typename Numeric = double>
virtual bool Bern< Numeric >::operator!= ( const Bern< Numeric > & other) const
inlinevirtual

Check if actual Bernstein polynomial and other are different.

Parameters
other: the other Bernstein polynomial to check.
Returns
true if the two Bernstein polynomials are different.

◆ operator()()

template<typename Numeric = double>
Numeric Bern< Numeric >::operator() ( const Numeric u) const
inline

Evaluation of Bernstein polynomial at value u.

Parameters
u: value between 0 and 1.
Returns
Evaluation corresponding at value u.

◆ operator==()

template<typename Numeric = double>
virtual bool Bern< Numeric >::operator== ( const Bern< Numeric > & other) const
inlinevirtual

Check if actual Bernstein polynomial and other are approximately equal.

Parameters
other: the other Bernstein polynomial to check.
Returns
true if the two Bernstein polynomials are approximately equals.

◆ serialize()

template<typename Numeric = double>
template<class Archive>
void Bern< Numeric >::serialize ( Archive & ar,
const unsigned int version )
inline

◆ boost::serialization::access

template<typename Numeric = double>
friend class boost::serialization::access
friend

Member Data Documentation

◆ bin_m_i_

template<typename Numeric = double>
Numeric Bern< Numeric >::bin_m_i_

◆ i_

template<typename Numeric = double>
Numeric Bern< Numeric >::i_

◆ m_minus_i

template<typename Numeric = double>
Numeric Bern< Numeric >::m_minus_i

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