split sample means

master
glmdev 5 years ago
parent a12a45404a
commit b4d6130575

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -0,0 +1,11 @@
arg = commandArgs(TRUE)
samples = rep(NA, 100000)
for ( i in 1:100000 ){ samples[i] = mean(rexp(40, 0.2)) }
jpeg(paste('plots/', arg, '.jpg', sep=""))
hist(samples, main="", prob=T)
lines(density(samples), col="darkblue", lwd=3)
dev.off()

@ -1,8 +1,8 @@
#!/bin/bash
#SBATCH --ntasks=5
#SBATCH --ntasks=6
cd $SLURM_SUBMIT_DIR
mkdir plots/
mpiexec -n 1 R --vanilla -f generate_plots.R
R --vanilla -f slurm_generate_plots.R --args "plot$SLURM_ARRAY_TASK_ID"

Loading…
Cancel
Save