aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.cpp
diff options
context:
space:
mode:
authorBertrand <bertrand.horel@gmail.com>2016-02-19 15:03:51 +0000
committerBertrand <bertrand.horel@gmail.com>2016-02-19 15:03:51 +0000
commitd2b133901a65244934eb642ec8e20c797efaf650 (patch)
treef8d186f8e8ca0886f8f0a464261ba8747242b4e6 /src/test.cpp
parent355e4567e68a76356714e2e58a42dcd78533cf6c (diff)
downloadprojet_C++-d2b133901a65244934eb642ec8e20c797efaf650.tar.gz
nettoyage du dépôt
Diffstat (limited to 'src/test.cpp')
-rw-r--r--src/test.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test.cpp b/src/test.cpp
new file mode 100644
index 0000000..3578c87
--- /dev/null
+++ b/src/test.cpp
@@ -0,0 +1,26 @@
+#include <iostream>
+#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;
+};