Revision 706, 0.9 kB
(checked in by smidl, 15 years ago)
|
eol-native
|
-
Property svn:eol-style set to
native
|
Rev | Line | |
---|
[425] | 1 | /*! |
---|
| 2 | \file |
---|
| 3 | \brief Utility functions for BDM unit tests. |
---|
| 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 TEST_UTIL_H |
---|
| 14 | #define TEST_UTIL_H |
---|
| 15 | |
---|
| 16 | #include <string> |
---|
[436] | 17 | #include "itpp_ext.h" |
---|
[425] | 18 | |
---|
| 19 | namespace bdm { |
---|
| 20 | |
---|
[436] | 21 | class epdf; |
---|
| 22 | |
---|
[425] | 23 | /*! \brief Non-general but simple file load. |
---|
| 24 | |
---|
[486] | 25 | Handles only text files smaller than 8KB which do not contain '\0' |
---|
[425] | 26 | characters, but for testing that should be enough. |
---|
| 27 | */ |
---|
[477] | 28 | std::string load_test_file ( const char *fname ); |
---|
[425] | 29 | |
---|
[477] | 30 | double normcoef ( const epdf *ep, const itpp::vec &xb, const itpp::vec &yb, |
---|
| 31 | int xn = 100, int yn = 100 ); |
---|
[436] | 32 | |
---|
[477] | 33 | itpp::vec num_mean2 ( const epdf *ep, const itpp::vec &xb, const itpp::vec &yb, |
---|
| 34 | int xn = 100, int yn = 100 ); |
---|
[436] | 35 | |
---|
[425] | 36 | } |
---|
| 37 | |
---|
| 38 | #endif |
---|