Skip to content

Commit 96e66c1

Browse files
committed
Added documentation to same-univariate-moments.
1 parent eb4533e commit 96e66c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/setup.lisp

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727

2828
(defun same-univariate-moments (rv &key (n 100000) (z-band 4d0)
2929
(var-band 0.1))
30+
"Sample a univariate random variable N times and compare with expected moments, using
31+
32+
1. the z-score of the mean (should be below Z-BAND in absolute value),
33+
34+
2. the variance with NUM= using VAR-BAND as a tolerance."
3035
(let+ (((&accessors-r/o mean variance) rv)
3136
(sample-moments (clnu.stats:central-sample-moments nil)))
3237
(loop repeat n

0 commit comments

Comments
 (0)