|
Revision 976, 0.9 kB
(checked in by sindj, 15 years ago)
|
|
Zaklad robustu, prikladek pro Windows. JS
|
| Line | |
|---|
| 1 | /*! |
|---|
| 2 | \file |
|---|
| 3 | \brief Robust Bayesian auto-regression model |
|---|
| 4 | \author Jan Sindelar. |
|---|
| 5 | */ |
|---|
| 6 | |
|---|
| 7 | #ifndef ROBUST_H |
|---|
| 8 | #define ROBUST_H |
|---|
| 9 | |
|---|
| 10 | #include <stat/exp_family.h> |
|---|
| 11 | |
|---|
| 12 | using namespace bdm; |
|---|
| 13 | using namespace std; |
|---|
| 14 | |
|---|
| 15 | #include <vector> |
|---|
| 16 | class point |
|---|
| 17 | { |
|---|
| 18 | vec coordinates; |
|---|
| 19 | point *twinpoint; |
|---|
| 20 | |
|---|
| 21 | public: |
|---|
| 22 | point(vec coordinates); |
|---|
| 23 | |
|---|
| 24 | point(vec coordinates, point *twinpoint); |
|---|
| 25 | }; |
|---|
| 26 | |
|---|
| 27 | class segment |
|---|
| 28 | { |
|---|
| 29 | point *end1,*end2; |
|---|
| 30 | |
|---|
| 31 | public: |
|---|
| 32 | segment(point *end1, point *end2); |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | class leaf{ |
|---|
| 36 | leaf *leftchild,*rightchild,*parent; |
|---|
| 37 | vec condition; |
|---|
| 38 | vector<segment> segments; |
|---|
| 39 | bool deadleaf = false; |
|---|
| 40 | |
|---|
| 41 | public: |
|---|
| 42 | leaf(leaf *parent); |
|---|
| 43 | |
|---|
| 44 | evolvechildren(vec condition); |
|---|
| 45 | }; |
|---|
| 46 | |
|---|
| 47 | //! Conditional(e) Multicriteria-Laplace-Inverse-Gamma distribution density |
|---|
| 48 | class emlig : public eEF{ |
|---|
| 49 | leaf *tree; |
|---|
| 50 | |
|---|
| 51 | public: |
|---|
| 52 | emlig(leaf *tree) : eEF(); |
|---|
| 53 | |
|---|
| 54 | emlig(vec [] conditions) : eEF(); |
|---|
| 55 | |
|---|
| 56 | }; |
|---|
| 57 | |
|---|
| 58 | //! Robust Bayesian AR model for Multicriteria-Laplace-Inverse-Gamma density |
|---|
| 59 | class RARX : public BMEF{ |
|---|
| 60 | }; |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | #endif //TRAGE_H |
|---|