Root/m1rc3/norruption/1/plot

Source at commit 57b53c61c1b37a913fc963c3c0bec0364efbcb7e created 10 years 1 month ago.
By Werner Almesberger, ircstat/ML: update for 2014-01
1#!/bin/sh
2gnuplot <<EOF
3set term postscript color eps enhanced solid lw 2 20
4set output "out.eps"
5set title "Probability distribution of time between NOR corruptions"
6set xlabel "Power cycles"
7set ylabel "Cumulative probability"
8set key bottom
9plot "< sed '1,/^\$/d' GRAPH | sort -n" using 1:((\$0+1)/12) with lines \
10  title "First corruption observed", \
11  "< sed '/^\$/q' GRAPH | sort -n" using 1:((\$0+1)/12) with lines \
12  title "Last non-corruption observed", \
13  1-exp(-0.0021*x) with lines \
14  title "Exponential distribution ({/Symbol l}=1/476)"
15EOF
16cat out.eps |
17  gs -sDEVICE=ppmraw -r100 -sOutputFile=- \
18  -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sPAPERSIZE=a4 -q - | \
19  convert -trim - out.png
20

Archive Download this file

Branches:
master



interactive