Changeset 1323 for library/tests/tutorial
- Timestamp:
- 04/04/11 14:21:55 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/tutorial/arx_simple.cpp
r1322 r1323 5 5 int main() { 6 6 //prior 7 mat V0 = 0.00001 * eye ( 2);7 mat V0 = 0.00001 * eye ( 3 ); 8 8 V0 ( 0, 0 ) = 0.1; // 9 9 ARX Ar; 10 10 Ar.set_statistics ( 1, V0 ); //nu is default (set to have finite moments) 11 Ar.set_constant ( true );11 Ar.set_constant ( false ); 12 12 Ar.validate(); 13 13 // forgetting is default: 1.0 14 Ar.bayes_batch ( randn ( 1, 3400 ) );14 Ar.bayes_batch ( randn ( 1, 3400 ), randn(2,3400) ); 15 15 16 16 cout << "Expected value of Theta is: " << Ar.posterior().mean() << endl;