aboutsummaryrefslogtreecommitdiff
path: root/reproduce
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-08-11 11:59:04 +0200
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-08-11 11:59:04 +0200
commit2af60e2d59c508c182a10ebc0de31b035b73cae8 (patch)
tree55eb657717051994ac5f52e61d5e5ec6fd368b88 /reproduce
parentb42f7bdd034fbc888cf54d1d304c378592c31a8d (diff)
Not using random distribution in demonstration plot
Different implementations of AWK may use different random number generators, so even setting the seed will not ensure a reproducible result. Because of this, the random plot may be different when the pipeline runs on different systems and this can confuse early users (its contrary to the exact reproducibility that is the whole purpose of this pipeline). The plot is just a simple X^2 plot, showing the squared value of the X axis on the Y axis. It is very simple, but atleast it will be identical on all systems. Also, there may be too many complicated things in the pipeline already for an early user, and its just a demonstration, so the easier/simpler, the better.
Diffstat (limited to 'reproduce')
-rw-r--r--reproduce/src/make/delete-me.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/reproduce/src/make/delete-me.mk b/reproduce/src/make/delete-me.mk
index a93c2d0..de72873 100644
--- a/reproduce/src/make/delete-me.mk
+++ b/reproduce/src/make/delete-me.mk
@@ -37,8 +37,7 @@ $(dm): $(pconfdir)/delete-me-num.mk | $(dmdir)
rm -f $(tikzdir)/delete-me.pdf
# Generate the table of random values.
- awk 'BEGIN { for (i = 1; i <= $(delete-me-num); i++) \
- print i, rand(); }' > $@
+ awk 'BEGIN {for(i=1;i<=$(delete-me-num);i+=0.5) print i, i*i; }' > $@