Public Member Functions | Private Attributes
mbl_ar_process< T > Class Template Reference

Compute the parameters of a second order autoregressive process. More...

#include <mbl_ar_process.h>

List of all members.

Public Member Functions

 mbl_ar_process ()
 Constructor.
 ~mbl_ar_process ()
 Destructor.
short version_no () const
 Version number for I/O.
vcl_string is_a () const
 Name of the class.
bool is_class (vcl_string const &s) const
 Does the name of the class match the argument?.
void print_summary (vcl_ostream &os) const
 Print class to os.
void b_write (vsl_b_ostream &bfs) const
 Save class to binary file stream.
void b_read (vsl_b_istream &bfs)
 Load class from binary file stream.
void learn (vcl_vector< vnl_vector< T > > &data)
 Dynamic learning.
void learn_burg (vcl_vector< vnl_vector< T > > &data)
 Learning using Burg's algorithm.
vnl_vector< T > predict (vnl_vector< T > &Xm1, vnl_vector< T > &Xm2, vnl_random *rng=0)
 Prediction.

Private Attributes

vnl_matrix< T > A_2
vnl_matrix< T > A_1
vnl_matrix< T > B_0
vnl_vector< T > Xm

Detailed Description

template<class T>
class mbl_ar_process< T >

Compute the parameters of a second order autoregressive process.

Definition at line 21 of file mbl_ar_process.h.


Constructor & Destructor Documentation

template<class T >
mbl_ar_process< T >::mbl_ar_process ( )

Constructor.

Definition at line 18 of file mbl_ar_process.txx.

template<class T >
mbl_ar_process< T >::~mbl_ar_process ( )

Destructor.

Definition at line 24 of file mbl_ar_process.txx.


Member Function Documentation

template<class T >
void mbl_ar_process< T >::b_read ( vsl_b_istream bfs)

Load class from binary file stream.

Definition at line 54 of file mbl_ar_process.txx.

template<class T >
void mbl_ar_process< T >::b_write ( vsl_b_ostream bfs) const

Save class to binary file stream.

Definition at line 47 of file mbl_ar_process.txx.

template<class T>
vcl_string mbl_ar_process< T >::is_a ( ) const

Name of the class.

template<class T >
bool mbl_ar_process< T >::is_class ( vcl_string const &  s) const

Does the name of the class match the argument?.

Definition at line 61 of file mbl_ar_process.txx.

template<class T >
void mbl_ar_process< T >::learn ( vcl_vector< vnl_vector< T > > &  data)

Dynamic learning.

Definition at line 169 of file mbl_ar_process.txx.

template<class T >
void mbl_ar_process< T >::learn_burg ( vcl_vector< vnl_vector< T > > &  data)

Learning using Burg's algorithm.

Definition at line 94 of file mbl_ar_process.txx.

template<class T >
vnl_vector< T > mbl_ar_process< T >::predict ( vnl_vector< T > &  Xm1,
vnl_vector< T > &  Xm2,
vnl_random rng = 0 
)

Prediction.

of a vector given the two previous vectors

Parameters:
rngUse an externally provided random number generator, rather than one statically local to the function.

of a vcl_vector given the two previous vectors

Definition at line 69 of file mbl_ar_process.txx.

template<class T >
void mbl_ar_process< T >::print_summary ( vcl_ostream &  os) const

Print class to os.

Definition at line 37 of file mbl_ar_process.txx.

template<class T >
short mbl_ar_process< T >::version_no ( ) const

Version number for I/O.

Definition at line 30 of file mbl_ar_process.txx.


Member Data Documentation

template<class T>
vnl_matrix<T> mbl_ar_process< T >::A_1 [private]

Definition at line 23 of file mbl_ar_process.h.

template<class T>
vnl_matrix<T> mbl_ar_process< T >::A_2 [private]

Definition at line 23 of file mbl_ar_process.h.

template<class T>
vnl_matrix<T> mbl_ar_process< T >::B_0 [private]

Definition at line 23 of file mbl_ar_process.h.

template<class T>
vnl_vector<T> mbl_ar_process< T >::Xm [private]

Definition at line 24 of file mbl_ar_process.h.


The documentation for this class was generated from the following files: