Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MODEL Class Reference

Abstract model class. More...

#include <models.h>

Inheritance diagram for MODEL:

PREESTMODEL MARKOVMODEL SVMODEL SVCIR SVEOU SVEOU1 List of all members.

Public Member Functions

 MODEL ()
 Constructor.

virtual ~MODEL ()
 Destructor.

virtual matrix simulate (long n)=0
 Virtual simulation function.

virtual unsigned getdim ()=0
 Virtual simulation function.

safevector< double > simulatevector (long n)
 Returns dimension of parameterspace.

void setseed (long s)
 sets the seed.

virtual void setpar (matrix par)
 sets the parameters.

matrix getpar ()
 returns the parameters.

long noofpar ()
 returns the number of parameters.

matrix getdata ()
 returns the data.

long getdatasize ()
 returns the datasize.

void setdata (matrix Y)
 sets the data.

virtual matrix estfunc (matrix par)=0
 the estimation function described in MS.


Protected Attributes

matrix data
 matrix holding the data.

matrix parameters
 matrix holding the parameters.

long seedvar
 variable helping to set the seed.

long * seed
 the seed used in the simulations


Detailed Description

Abstract model class.

Definition at line 39 of file models.h.


Constructor & Destructor Documentation

MODEL::MODEL  )  [inline]
 

Constructor.

Returns:

Definition at line 46 of file models.h.

00046 {}

virtual MODEL::~MODEL  )  [inline, virtual]
 

Destructor.

Returns:

Definition at line 52 of file models.h.

00052 {}


Member Function Documentation

virtual matrix MODEL::estfunc matrix  par  )  [pure virtual]
 

the estimation function described in MS.

Parameters:
par : the parameters of the model.
Returns:

Implemented in PREESTMODEL.

virtual unsigned MODEL::getdim  )  [pure virtual]
 

Virtual simulation function.

Parameters:
n : number of variables simulated
Returns:
vector of variables opposed to function simulate which returns matrix.

Implemented in SVCIR, and SVEOU.

virtual matrix MODEL::simulate long  n  )  [pure virtual]
 

Virtual simulation function.

Parameters:
n : number of variables simulated
Returns:
(VIRTUAL)

Implemented in MARKOVMODEL, and SVMODEL.

Referenced by PREESTMODEL::calculate_EHH(), PREESTMODEL::calculate_X(), and simulatevector().


The documentation for this class was generated from the following files:
Generated on Tue Feb 14 16:05:52 2006 for estfunc by doxygen 1.3.6