From f7b4e35d21a9ceccff10f248b420752c22957546 Mon Sep 17 00:00:00 2001 From: Bertrand Date: Sun, 31 Jan 2016 22:12:34 +0000 Subject: ajout test.cpp --- test.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test.cpp (limited to 'test.cpp') diff --git a/test.cpp b/test.cpp new file mode 100644 index 0000000..3578c87 --- /dev/null +++ b/test.cpp @@ -0,0 +1,26 @@ +#include +#include "var_alea.hpp" + +int main() { + init_alea(); + + uniform U(0,1); + std::cout << U() << std::endl; + + expo E(1); + std::cout << E() << std::endl; + + gaussian G(0,1); + std::cout << G() << std::endl; + + chi_deux X(1); + std::cout << X() << std::endl; + + inverse_gaussian Y(0.5,1); + std::cout << Y() << std::endl; + + normal_inverse_gaussian Z(0.8,0.1,0,2); + std::cout << Z() << std::endl; + + return 0; +}; -- cgit v1.2.3-70-g09d2