File: example_dream.cpp

package info (click to toggle)
tasmanian 8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,852 kB
  • sloc: cpp: 34,523; python: 7,039; f90: 5,080; makefile: 224; sh: 64; ansic: 8
file content (51 lines) | stat: -rw-r--r-- 1,541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "Tasmanian.hpp"

/*!
 * \internal
 * \file example_dream.cpp
 * \brief Examples for the Tasmanian DREAM module.
 * \author Miroslav Stoyanov
 * \ingroup TasmanianDREAMExamples
 *
 * The main header required to gain access to the DREAM capabilities of Tasmanian.
 * The header will include all files needed by the DREAM module including
 * the TasmanianSparseGrid.hpp header.
 * \endinternal
 */

//! \defgroup TasmanianDREAMExamples Examples for the Tasmanian DREAM module
//!
//! Several examples are included that demonstrate the proper usage of the DREAM interface.
//! The examples include random sampling from an arbitrary probability distribution,
//! Bayesian inference using a custom model or sparse grids interpolant,
//! as well as simple optimization problem (i.e., search for the mode of a probability distribution).

using namespace std;

#ifndef __TASMANIAN_DOXYGEN_SKIP
void dream_example_01();
void dream_example_02();
void dream_example_03();
void dream_example_04();
void dream_example_05();

int main(int argc, const char**){
/*
 * The purpose of this file is to demonstrate the proper way to call
 * functions from the TASMANIAN DREAM Module.
 */
    dream_example_01();
    dream_example_02();

    if (argc > 1) return 0; // fast testing used to check if the library linked correctly

    dream_example_03();
    dream_example_04();
    dream_example_05();

    cout << "\n" << "---------------------------------------------------------------------------------------------------\n\n";

    return 0;
}

#endif