summaryrefslogtreecommitdiff
path: root/Homework/cs3460/rands/main.cpp
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-07-02 11:55:17 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-07-02 11:55:17 -0700
commit6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch)
treeed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs3460/rands/main.cpp
downloadmisc-undergrad-main.tar.gz
misc-undergrad-main.zip
Diffstat (limited to 'Homework/cs3460/rands/main.cpp')
-rw-r--r--Homework/cs3460/rands/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Homework/cs3460/rands/main.cpp b/Homework/cs3460/rands/main.cpp
new file mode 100644
index 0000000..d109990
--- /dev/null
+++ b/Homework/cs3460/rands/main.cpp
@@ -0,0 +1,15 @@
+#include "distributions.hpp"
+
+int main()
+{
+ auto uniform = generateUniformDistribution(100000, 0, 79, 40);
+ plotDistribution("--- Uniform ---", uniform, 80);
+
+ auto normal = generateNormalDistribution(100000, 50, 5, 40);
+ plotDistribution("--- Normal ---", normal, 80);
+
+ auto poisson = generatePoissonDistribution(100000, 6, 40);
+ plotDistribution("--- Poisson ---", poisson, 80);
+
+ return 0;
+} \ No newline at end of file