aboutsummaryrefslogtreecommitdiffstats
path: root/test.cpp
diff options
context:
space:
mode:
authorBertrand <bertrand.horel@gmail.com>2016-01-31 22:12:34 +0000
committerBertrand <bertrand.horel@gmail.com>2016-01-31 22:12:34 +0000
commitf7b4e35d21a9ceccff10f248b420752c22957546 (patch)
tree16af073018dcced325897a4799c9fb8e8b09095b /test.cpp
parentcc74c6a2039b76c7797a78fdeb5d5cd7654b4507 (diff)
downloadprojet_C++-f7b4e35d21a9ceccff10f248b420752c22957546.tar.gz
ajout test.cpp
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp26
1 files changed, 26 insertions, 0 deletions
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 <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;
+};