|
Revision 717, 0.9 kB
(checked in by mido, 16 years ago)
|
|
clean up of the whole tests directory has just started
|
| Line | |
|---|
| 1 | /*! |
|---|
| 2 | \file |
|---|
| 3 | \brief Generating stress test agenda from random data. |
|---|
| 4 | \author Vaclav Barta. |
|---|
| 5 | |
|---|
| 6 | ----------------------------------- |
|---|
| 7 | BDM++ - C++ library for Bayesian Decision Making under Uncertainty |
|---|
| 8 | |
|---|
| 9 | Using IT++ for numerical operations |
|---|
| 10 | ----------------------------------- |
|---|
| 11 | */ |
|---|
| 12 | |
|---|
| 13 | #ifndef SIZE_GENERATOR_H |
|---|
| 14 | #define SIZE_GENERATOR_H |
|---|
| 15 | |
|---|
| 16 | #include "itpp_ext.h" |
|---|
| 17 | #include "generator.h" |
|---|
| 18 | |
|---|
| 19 | /*! Generates progressively larger random matrices. |
|---|
| 20 | */ |
|---|
| 21 | class size_generator : public generator { |
|---|
| 22 | private: |
|---|
| 23 | int step; |
|---|
| 24 | int sz; |
|---|
| 25 | |
|---|
| 26 | public: |
|---|
| 27 | size_generator() : step ( 7 ), sz ( step ) { } |
|---|
| 28 | |
|---|
| 29 | itpp::mat next(); |
|---|
| 30 | |
|---|
| 31 | //! Load from structure with elements: |
|---|
| 32 | //! \code |
|---|
| 33 | //! { size = 7; // size (rows == cols) of the first generated matrix |
|---|
| 34 | //! step = 7; // how many times to increase the generated matrix in every iteration |
|---|
| 35 | //! } |
|---|
| 36 | //! \endcode |
|---|
| 37 | //! Both elements are optional, with defaults as shown. |
|---|
| 38 | void from_setting ( const Setting &set ); |
|---|
| 39 | }; |
|---|
| 40 | |
|---|
| 41 | #endif |
|---|