The general distribution has been extended to accept cumulative distribution data, by means of a "cumulative" switch. The calculation of the mean value has also been corrected for this distribution, and additional header documentation and parameter checking has been added. In addition, the distribution models now all print some basic information (min, max and mean) into the log file to help in checking that the specification is correct. Patch contributed by Timo Niemi, VTT.
25 lines
620 B
Bash
Executable File
25 lines
620 B
Bash
Executable File
#!/bin/sh
|
|
|
|
gnuplot<<EOF
|
|
set terminal postscript eps color enhanced font "Helvetica,15"
|
|
set output 'comparison.eps'
|
|
set multiplot layout 2, 1
|
|
|
|
set xlabel 'size (m)'
|
|
set ylabel 'PDF (-)'
|
|
set title 'Density mode test'
|
|
|
|
plot 'densityTest_' using 1:2 w l t 'produced',\
|
|
'densityTest_expected' w l t 'expected'
|
|
|
|
set key center
|
|
set ylabel 'CDF (-)'
|
|
set title 'Cumulative mode test'
|
|
|
|
plot 'cumulativeTest_cumulative_' using 1:2 w l t 'produced',\
|
|
'cumulativeTest_expected' w l t 'expected'
|
|
EOF
|
|
|
|
|
|
#------------------------------------------------------------------------------
|