root/library/tests/test_util.h @ 761

Revision 706, 0.9 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
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>
17#include "itpp_ext.h"
18
19namespace bdm {
20
21class epdf;
22
23/*! \brief Non-general but simple file load.
24
25  Handles only text files smaller than 8KB which do not contain '\0'
26  characters, but for testing that should be enough.
27*/
28std::string load_test_file ( const char *fname );
29
30double normcoef ( const epdf *ep, const itpp::vec &xb, const itpp::vec &yb,
31                  int xn = 100, int yn = 100 );
32
33itpp::vec num_mean2 ( const epdf *ep, const itpp::vec &xb, const itpp::vec &yb,
34                      int xn = 100, int yn = 100 );
35
36}
37
38#endif
Note: See TracBrowser for help on using the browser.