library of assembled shared sources |
http://lass.cocamware.com |
#include <interval.h>
Public Types | |
typedef C | baseType |
Public Member Functions | |
interval () | |
~interval () | |
interval (typename util::CallTraits< baseType >::TParam iValue) | |
interval (typename util::CallTraits< baseType >::TParam iInf, typename util::CallTraits< baseType >::TParam iSup) | |
interval & | operator= (const interval< C > &i) |
const interval & | operator+ () const |
interval | operator- () const |
void | set (typename util::CallTraits< C >::TParam iInf, typename util::CallTraits< C >::TParam iSup) |
direct set of both infinum and supinum | |
bool | isEmpty () const |
returns true for the empty interval | |
bool | isSingleton () const |
return true for degenerated intervals | |
bool | contains (typename util::CallTraits< baseType >::TParam ix) const |
returns true when ix is in the interval | |
baseType & | operator[] (int i) |
indexed access, 0 = infinum, 1 = supinum | |
baseType | operator[] (int i) const |
indexed access, 0 = infinum, 1 = supinum | |
baseType | inf () const |
the infinum of the interval | |
baseType | sup () const |
the supinum of the interval | |
baseType & | inf () |
the infinum of the interval | |
baseType & | sup () |
the supinum of the interval | |
baseType | mid () const |
the middle of the interval | |
baseType | diam () const |
the difference between supinum and infinum | |
baseType | ratio () const |
the ratio of the supinum over the infinum | |
bool | operator> (const interval< C > &i) const |
certainly greater than | |
bool | operator< (const interval< C > &i) const |
certainly less than | |
bool | operator== (const interval< C > &i) const |
certainly equal | |
bool | operator!= (const interval< C > &i) const |
certainly not equal | |
bool | operator>= (const interval< C > &i) const |
certainly greater or equal than | |
bool | operator<= (const interval< C > &i) const |
certainly less or equal than | |
bool | pe (const interval< C > &i) const |
possibly equal | |
bool | pne (const interval< C > &i) const |
possibly not equal | |
bool | pg (const interval< C > &i) const |
possibly greater than | |
bool | pge (const interval< C > &i) const |
possibly greater or equal than | |
bool | pl (const interval< C > &i) const |
possibly less than | |
bool | ple (const interval< C > &i) const |
possibly less or equal than | |
baseType | fe (const interval< C > &i) const |
fuzzy equal | |
C | fne (const interval< C > &i) const |
fuzzy not equal | |
baseType | fg (const interval< C > &i) const |
fuzzy greater than | |
baseType | fge (const interval< C > &i) const |
fuzzy greater or equal than | |
baseType | fl (const interval< C > &i) const |
fuzzy less than | |
baseType | fle (const interval< C > &i) const |
fuzzy less or equal than | |
interval & | operator+= (const interval< C > &i) |
interval & | operator-= (const interval< C > &i) |
interval & | operator*= (const interval< C > &i) |
interval & | operator/= (const interval< C > &i) |
interval & | operator+= (typename util::CallTraits< baseType >::TParam s) |
interval & | operator-= (typename util::CallTraits< baseType >::TParam s) |
interval & | operator*= (typename util::CallTraits< baseType >::TParam s) |
interval & | operator/= (typename util::CallTraits< baseType >::TParam s) |
Static Public Attributes | |
static const interval< C > | empty = interval<C>(NumTraits<C>::one, NumTraits<C>::zero) |
Private Attributes | |
C | v [2] |
Friends | |
void | inpsqr (interval< C > &i) |
void | inpsqrt (interval< C > &i) |
void | inpexp (interval< C > &i) |
void | inplog (interval< C > &i) |
void | inpnorm (interval< C > &i) |
void | inpinv (interval< C > &i) |
template<typename C2 , typename F > | |
interval< C2 > | applyFunction (const interval< C2 > &iV, F func) |
Class for interval arithmetic. The arithmetic is weak interval arithmetic: there is no rounding code, to speed up things. It should however be useful except for numerical stability studies on the bitlevel. If you wont strong interval arithmetic, look for the boost library.
Definition at line 78 of file interval.h.
typedef C lass::num::interval< C >::baseType |
Definition at line 83 of file interval.h.
lass::num::interval< C >::interval | ( | ) | [inline] |
Definition at line 87 of file interval.h.
References lass::stde::C, and lass::num::interval< C >::v.
lass::num::interval< C >::~interval | ( | ) | [inline] |
Definition at line 88 of file interval.h.
lass::num::interval< C >::interval | ( | typename util::CallTraits< baseType >::TParam | iValue | ) | [inline, explicit] |
Definition at line 299 of file interval.h.
lass::num::interval< C >::interval | ( | typename util::CallTraits< baseType >::TParam | iInf, | |
typename util::CallTraits< baseType >::TParam | iSup | |||
) | [inline, explicit] |
Definition at line 306 of file interval.h.
interval< C > & lass::num::interval< C >::operator= | ( | const interval< C > & | i | ) | [inline] |
Definition at line 313 of file interval.h.
const interval< C > & lass::num::interval< C >::operator+ | ( | ) | const [inline] |
Definition at line 321 of file interval.h.
interval< C > lass::num::interval< C >::operator- | ( | ) | const [inline] |
Definition at line 564 of file interval.h.
void lass::num::interval< C >::set | ( | typename util::CallTraits< C >::TParam | iInf, | |
typename util::CallTraits< C >::TParam | iSup | |||
) | [inline] |
bool lass::num::interval< C >::isEmpty | ( | ) | const [inline] |
bool lass::num::interval< C >::isSingleton | ( | ) | const [inline] |
bool lass::num::interval< C >::contains | ( | typename util::CallTraits< baseType >::TParam | ix | ) | const [inline] |
C & lass::num::interval< C >::operator[] | ( | int | i | ) | [inline] |
C lass::num::interval< C >::operator[] | ( | int | i | ) | const [inline] |
C lass::num::interval< C >::inf | ( | ) | const [inline] |
C lass::num::interval< C >::sup | ( | ) | const [inline] |
C & lass::num::interval< C >::inf | ( | ) | [inline] |
C & lass::num::interval< C >::sup | ( | ) | [inline] |
C lass::num::interval< C >::mid | ( | ) | const [inline] |
C lass::num::interval< C >::diam | ( | ) | const [inline] |
C lass::num::interval< C >::ratio | ( | ) | const [inline] |
bool lass::num::interval< C >::operator> | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::operator< | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::operator== | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::operator!= | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::operator>= | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::operator<= | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::pe | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::pne | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::pg | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::pge | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::pl | ( | const interval< C > & | i | ) | const [inline] |
bool lass::num::interval< C >::ple | ( | const interval< C > & | i | ) | const [inline] |
C lass::num::interval< C >::fe | ( | const interval< C > & | i | ) | const [inline] |
C lass::num::interval< C >::fne | ( | const interval< C > & | i | ) | const [inline] |
C lass::num::interval< C >::fg | ( | const interval< C > & | i | ) | const [inline] |
C lass::num::interval< C >::fge | ( | const interval< C > & | i | ) | const [inline] |
C lass::num::interval< C >::fl | ( | const interval< C > & | i | ) | const [inline] |
C lass::num::interval< C >::fle | ( | const interval< C > & | i | ) | const [inline] |
interval< C > & lass::num::interval< C >::operator+= | ( | const interval< C > & | i | ) | [inline] |
Definition at line 570 of file interval.h.
interval< C > & lass::num::interval< C >::operator-= | ( | const interval< C > & | i | ) | [inline] |
Definition at line 578 of file interval.h.
interval< C > & lass::num::interval< C >::operator*= | ( | const interval< C > & | i | ) | [inline] |
Definition at line 586 of file interval.h.
interval< C > & lass::num::interval< C >::operator/= | ( | const interval< C > & | i | ) | [inline] |
Definition at line 598 of file interval.h.
interval< C > & lass::num::interval< C >::operator+= | ( | typename util::CallTraits< baseType >::TParam | s | ) | [inline] |
Definition at line 615 of file interval.h.
interval< C > & lass::num::interval< C >::operator-= | ( | typename util::CallTraits< baseType >::TParam | s | ) | [inline] |
Definition at line 623 of file interval.h.
interval< C > & lass::num::interval< C >::operator*= | ( | typename util::CallTraits< baseType >::TParam | s | ) | [inline] |
Definition at line 631 of file interval.h.
interval< C > & lass::num::interval< C >::operator/= | ( | typename util::CallTraits< baseType >::TParam | s | ) | [inline] |
Definition at line 643 of file interval.h.
void inpsqr | ( | interval< C > & | i | ) | [friend] |
void inpsqrt | ( | interval< C > & | i | ) | [friend] |
void inpexp | ( | interval< C > & | i | ) | [friend] |
void inplog | ( | interval< C > & | i | ) | [friend] |
void inpnorm | ( | interval< C > & | i | ) | [friend] |
void inpinv | ( | interval< C > & | i | ) | [friend] |
interval<C2> applyFunction | ( | const interval< C2 > & | iV, | |
F | func | |||
) | [friend] |
C lass::num::interval< C >::v[2] [private] |
const interval< C > lass::num::interval< C >::empty = interval<C>(NumTraits<C>::one, NumTraits<C>::zero) [inline, static] |
Definition at line 85 of file interval.h.
Generated on Mon Nov 10 14:22:10 2008 for Library of Assembled Shared Sources by 1.5.7.1 |