template <class Type> class Model a simple class for a model space
| Model () the default constructor | |||||||||
| Model (int n ) construct a model space with dimension n | |||||||||
| Model ( const Vector <Type>& maxp, const Vector <Type>& minp, const Vector <Type>& ini_mod, Type delta) construct a discrete model space with boundary and initial values
| |||||||||
| Model ( const Vector <Type>& maxp, const Vector <Type>& minp, int (*cstraints)( Vector <Type>&)) construct a discrete model space with boundary and constraints
| |||||||||
| Model (const Vector <Type>& maxp, const Vector <Type>& minp, const Vector <Type>& ini_mod) construct a continuous model space with boundary and initial values | |||||||||
| Model (const Vector <Type>& maxp, const Vector <Type>& minp) construct a continuous model space with boundary | |||||||||
| Model (const Vector <Type>& ini_mod) construct a continuous model space with initial values | |||||||||
| Model (const int n , int (*cstraints)( Vector <Type>&)) construct an n-D models space with constraints | |||||||||
| Model (const Model <Type>& m) construct a model space identical to that of Model m | |||||||||
| modSize () const | |||||||||
| oneMax (int i) const | |||||||||
| oneMin (int i) const | |||||||||
| operator[] (int) const | |||||||||
| modMax () const | |||||||||
| modMin () const | |||||||||
| setModMax (const Vector <Type>& v) | |||||||||
| setModMin (const Vector <Type>& v) | |||||||||
| modParam () const | |||||||||
| grid () | |||||||||
| norm (int ) | |||||||||
| normalize () | |||||||||
| range (int) | |||||||||
| operator[] (int) | |||||||||
| update (Type, Type, const Vector <Type>&) const | |||||||||
| operator= (const Vector <Type>&) | |||||||||
| operator= (const Model <Type>&) | |||||||||
| operator= (Type) | |||||||||
| operator*= ( Type) | |||||||||
| operator/= ( Type) | |||||||||
| operator+= (const Vector <Type>&) | |||||||||
| operator-= (const Vector <Type>&) | |||||||||
| operator+= (const Model <Type>&) | |||||||||
| operator-= (const Model <Type>&) | |||||||||
| chaSize (int) | |||||||||
| bfread (FILE *ifp) binary read from which ifp points to | |||||||||
| bfwrite (FILE *ofp) binary write to which ofp points to | |||||||||
| operator<< (ostream&, const Model <Type>&) | |||||||||
| operator>> (istream&, Model <Type>&) | |||||||||
| operator/ (const Model <Type>&, Type) | |||||||||
| operator* (const Model <Type>&, Type) | |||||||||
| operator* (Type, const Model <Type>&) | |||||||||
| operator+ (const Model <Type>&, const Model <Type>&) | |||||||||
| operator+ (const Model <Type>&, const Vector <Type>&) | |||||||||
| operator+ (const Vector <Type>&, const Model <Type>&) | |||||||||
| operator- (const Model <Type>&,const Model <Type>&) | |||||||||
| operator- (const Model <Type>&, const Vector <Type>&) | |||||||||
| operator- (const Vector <Type>&, const Model <Type>&) | |||||||||
| operator== (const Model <Type>& m1, const Model <Type>& m2) comparing two Models, == | |||||||||
| operator!= (const Model <Type>& m1, const Model <Type>& m2) comparing two Models, != |
This is a class for a model space and models in this space. It should have been a derived class of Vector<Type>, but it is standalone because of historical reasons (I didn't know about inheritence back then. :).There are several choices for the Model Space. You could construct a n-D infinite space $R^n$, n-D hypercube (continuous with lower and upper bound at each directions), n-D lattice (discrete Model space), or n-D space with irregular boundary (tested by the user-provide function, $cstraints(Vector\&)$.
After the model space is constructed, it will take care of the updating of thenew models that guarentees all models belong to the model space.
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling