# estimator.cpp File Reference

Application Estimator. More...

`#include <stat/libDS_ui.h>`
`#include <estim/arx_ui.h>`

## Functions
int | main (int argc, char *argv[])

## Detailed Description

Application Estimator.

The general task of estimation is defined on the following scheme:

Here,

- Data Source is an object (class DS) providing sequential data, .
- Bayesian Model is an object (class BM) performing Bayesian filtering,
- Result Logger is an object (class logger) dedicated to storing important data from the experiment.

## Command-line usage

Execute command:

    $> estimator config_file.cfg

Full description of the experiment is in the file config_file.cfg which is expected to have the following structure:

    system = {type = "DS_offspring", ...};      // definition of a data source
    estimator = {type = "BM_offspring", ...};   // definition of an estimator
    logger = {type = "logger_type",...};        // definition of a logger
    experiment = {ndat = 11000; };              // definition of number of data records

The above description must be specialized to specific classes. See, Running experiment `estimator` with ARX data fields how to do it for estimation of an ARX model.

## Matlab usage

Execute command:

    >> estimator('config_file.cfg');

when using loggers storing results on hard drives, and

    >> Res=estimator('config_file.cfg');

when using logger of the type `"mexlog"`. The results will be stored in structure `M`.