Date:2011-10-10 03:17:10 (7 years 8 months ago)
Author:Werner Almesberger
Commit:8b4ef502d71dea6be01c59ef1afc33a5d389b0c0
Message:m1rc3/norruption/1/: distribution data and plot script

Files: m1rc3/norruption/1/GRAPH (1 diff)
m1rc3/norruption/1/plot (1 diff)

Change Details

m1rc3/norruption/1/GRAPH
170
2613
323
41493
5981
6517
7352
8973
9233
1075
11171
12162
13
14
15223
16639
17117
181584
191121
20597
21422
221002
23260
2482
25194
26168
m1rc3/norruption/1/plot
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

Archive Download the corresponding diff file

Branches:
master



interactive