template <class Type> class Model

a simple class for a model space

Inheritance:


public members:

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
const Vector <Type>& maxp
upper boundary of the model space
const Vector <Type>& minp
lower boundary of the model space
const Vector <Type>& ini_mod
initial values of the model parameters
Type delta
discrete step size in the model space
Model ( const Vector <Type>& maxp, const Vector <Type>& minp, int (*cstraints)( Vector <Type>&))
construct a discrete model space with boundary and constraints
const Vector <Type>& maxp
upper boundary of the model space
const Vector <Type>& minp
lower boundary of the model space
int (*cstraints)( Vector <Type>&)
point to the function which tests if the constraints are statisfied
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
int modSize () const
Type oneMax (int i) const
Type oneMin (int i) const
Type operator[] (int) const
Vector <Type> modMax () const
Vector <Type> modMin () const
void setModMax (const Vector <Type>& v)
void setModMin (const Vector <Type>& v)
Vector <Type> modParam () const
Type& grid ()
Type norm (int )
Model <Type> normalize ()
Type range (int)
Type& operator[] (int)
Model <Type> update (Type, Type, const Vector <Type>&) const
Model <Type>& operator= (const Vector <Type>&)
Model <Type>& operator= (const Model <Type>&)
Model <Type>& operator= (Type)
Model <Type>& operator*= ( Type)
Model <Type>& operator/= ( Type)
Model <Type>& operator+= (const Vector <Type>&)
Model <Type>& operator-= (const Vector <Type>&)
Model <Type>& operator+= (const Model <Type>&)
Model <Type>& operator-= (const Model <Type>&)
Model <Type>& chaSize (int)
size_t bfread (FILE *ifp)
binary read from which ifp points to
size_t bfwrite (FILE *ofp)
binary write to which ofp points to
friend ostream& operator<< (ostream&, const Model <Type>&)
friend istream& operator>> (istream&, Model <Type>&)
friend Model <Type> operator/ (const Model <Type>&, Type)
friend Model <Type> operator* (const Model <Type>&, Type)
friend Model <Type> operator* (Type, const Model <Type>&)
friend Model <Type> operator+ (const Model <Type>&, const Model <Type>&)
friend Model <Type> operator+ (const Model <Type>&, const Vector <Type>&)
friend Model <Type> operator+ (const Vector <Type>&, const Model <Type>&)
friend Model <Type> operator- (const Model <Type>&,const Model <Type>&)
friend Model <Type> operator- (const Model <Type>&, const Vector <Type>&)
friend Model <Type> operator- (const Vector <Type>&, const Model <Type>&)
friend int operator== (const Model <Type>& m1, const Model <Type>& m2)
comparing two Models, ==
friend int operator!= (const Model <Type>& m1, const Model <Type>& m2)
comparing two Models, !=

Documentation

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 class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling