Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BIAS::Polynom Class Reference

class for Polynoms of arbitary order More...

#include <Base/Math/Polynom.hh>

+ Inheritance diagram for BIAS::Polynom:
+ Collaboration diagram for BIAS::Polynom:

Public Member Functions

void AddDebugLevel (const long int lv)
 
void AddDebugLevel (const std::string &name)
 
bool DebugLevelIsSet (const long int lv) const
 
bool DebugLevelIsSet (const std::string &name) const
 
double Evaluate (double const x) const
 
int GetDebugLevel () const
 
std::ostream & GetDebugStream () const
 
void GetDebugStream (std::ostream &os) const
 
unsigned int GetOrder () const
 
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found More...
 
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel More...
 
bool operator!= (const Polynom &a) const
 
Polynomoperator*= (const Polynom &a)
 
Polynomoperator*= (const double &d)
 
Polynomoperator+= (const Polynom &a)
 
Polynomoperator+= (const double &d)
 
Polynomoperator-= (const Polynom &a)
 
Polynomoperator-= (const double &d)
 
Polynomoperator/= (const Polynom &a)
 
Polynomoperator/= (const double &d)
 
Polynomoperator= (const Polynom &a)
 
Polynomoperator= (const double &d)
 
bool operator== (const Polynom &a) const
 
 Polynom (double d=0.0)
 
 Polynom (const Polynom &toCopy)
 
void PrintDebugLevel (std::ostream &os=std::cout) const
 
void Prune ()
 removes zero leading coefficients More...
 
void RemoveDebugLevel (const long int lv)
 
void RemoveDebugLevel (const std::string &name)
 
void SetDebugLevel (const long int lv)
 
void SetDebugLevel (const std::string &name)
 
void SetDebugStream (const std::ostream &os)
 
void SetOrder (unsigned int i)
 sets the order of polynom to i new generated coefficients are 0 More...
 
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels More...
 

Static Public Member Functions

static long int GetGlobalDebugLevel ()
 
static void SetGlobalDebugLevel (long int lev)
 

Public Attributes

elements
 STL member. More...
 

Protected Member Functions

long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel More...
 

Protected Attributes

long int _liDebugLevel
 
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class More...
 
std::map< std::string, long int > _String2Debuglevel
 
unsigned int order_
 

Static Protected Attributes

static std::ostream _zDebugStream
 
static long int GlobalDebugLevel = 0
 

Detailed Description

class for Polynoms of arbitary order

class Polynom represents a Polynom of arbitary order, where ith element is the coefficient of the ith exponent

Author
Marcel Lilienthal,June 2005; Christian Beder, August 2007
Examples:
ExamplePolynom.cpp.

Definition at line 46 of file Polynom.hh.

Constructor & Destructor Documentation

BIAS::Polynom::Polynom ( double  d = 0.0)
inline

Definition at line 49 of file Polynom.hh.

References SetOrder().

BIAS::Polynom::Polynom ( const Polynom toCopy)
inline

Definition at line 54 of file Polynom.hh.

References operator=().

Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::AddDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 362 of file Debug.hh.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( )
inlineprotectedinherited

returns the next available debuglevel

Author
woelk 09/2006

Definition at line 521 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const
inlineinherited
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const
inlineinherited

Definition at line 350 of file Debug.hh.

double BIAS::Polynom::Evaluate ( double const  x) const
inline

Definition at line 98 of file Polynom.hh.

References order_.

int BIAS::Debug::GetDebugLevel ( ) const
inlineinherited
std::ostream& BIAS::Debug::GetDebugStream ( ) const
inlineinherited

Definition at line 405 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const
inlineinherited

Definition at line 414 of file Debug.hh.

static long int BIAS::Debug::GetGlobalDebugLevel ( )
inlinestaticinherited

Definition at line 431 of file Debug.hh.

unsigned int BIAS::Polynom::GetOrder ( ) const
inline
Examples:
ExamplePolynom.cpp.

Definition at line 108 of file Polynom.hh.

References order_.

Referenced by BIAS::operator<(), BIAS::operator<<(), BIAS::operator>(), and Prune().

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const
inlineinherited

looks up a debuglevel in the internal map, returns 0 if not found

Author
woelk 09/2006

Definition at line 454 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name)
inlineinherited
bool BIAS::Polynom::operator!= ( const Polynom a) const
inline

Definition at line 222 of file Polynom.hh.

References operator==().

Polynom & BIAS::Polynom::operator*= ( const Polynom a)
inline

Definition at line 172 of file Polynom.hh.

References order_, and SetOrder().

Polynom & BIAS::Polynom::operator*= ( const double &  d)
inline

Definition at line 187 of file Polynom.hh.

References order_.

Polynom & BIAS::Polynom::operator+= ( const Polynom a)
inline

Definition at line 144 of file Polynom.hh.

References order_, and SetOrder().

Polynom & BIAS::Polynom::operator+= ( const double &  d)
inline

Definition at line 153 of file Polynom.hh.

Polynom & BIAS::Polynom::operator-= ( const Polynom a)
inline

Definition at line 158 of file Polynom.hh.

References order_, and SetOrder().

Polynom & BIAS::Polynom::operator-= ( const double &  d)
inline

Definition at line 167 of file Polynom.hh.

Polynom & BIAS::Polynom::operator/= ( const Polynom a)
inline

Definition at line 194 of file Polynom.hh.

Polynom & BIAS::Polynom::operator/= ( const double &  d)
inline

Definition at line 200 of file Polynom.hh.

References order_.

Polynom & BIAS::Polynom::operator= ( const Polynom a)
inline

Definition at line 128 of file Polynom.hh.

References order_, and SetOrder().

Referenced by Polynom().

Polynom & BIAS::Polynom::operator= ( const double &  d)
inline

Definition at line 138 of file Polynom.hh.

References SetOrder().

bool BIAS::Polynom::operator== ( const Polynom a) const
inline

Definition at line 207 of file Polynom.hh.

References order_.

Referenced by operator!=().

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

Definition at line 383 of file Debug.hh.

void BIAS::Polynom::Prune ( )
inline

removes zero leading coefficients

Definition at line 79 of file Polynom.hh.

References GetOrder(), and SetOrder().

void BIAS::Debug::RemoveDebugLevel ( const long int  lv)
inlineinherited

Definition at line 369 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 376 of file Debug.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::SetDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 325 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os)
inlineinherited

Definition at line 398 of file Debug.hh.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev)
inlinestaticinherited

Definition at line 424 of file Debug.hh.

void BIAS::Polynom::SetOrder ( unsigned int  i)
inline

sets the order of polynom to i new generated coefficients are 0

Author
Marcel Lilienthal
Examples:
ExamplePolynom.cpp.

Definition at line 70 of file Polynom.hh.

References order_.

Referenced by BIAS::ContourBSplineData::ComputeBasePolynomRecursive_(), operator*=(), operator+=(), operator-=(), operator=(), Polynom(), and Prune().

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

prints all internally known debuglevels

Author
woelk 09/2006

Definition at line 496 of file Debug.hh.

Member Data Documentation

long int BIAS::Debug::_liDebugLevel
protectedinherited

Definition at line 510 of file Debug.hh.

Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().

long int BIAS::Debug::_liNextDebugLevel
protectedinherited

new concept, debuglevel are managed here in the debug class

Definition at line 516 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel
protectedinherited

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream
staticprotectedinherited

Definition at line 511 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

T std::vector< T >::elements
inherited

STL member.

long int BIAS::Debug::GlobalDebugLevel = 0
staticprotectedinherited

Definition at line 513 of file Debug.hh.

unsigned int BIAS::Polynom::order_
protected

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