can now ask for fnormal histograms

This commit is contained in:
Dima Kogan 2016-09-08 23:02:31 -07:00
parent cacbedb336
commit 9e669044c7

View File

@ -333,9 +333,9 @@ sub interpretCommandline
# --xlen implies an order to the data, so I force monotonicity # --xlen implies an order to the data, so I force monotonicity
$options{monotonic} = 1 if defined $options{xlen}; $options{monotonic} = 1 if defined $options{xlen};
if( $options{histstyle} !~ /freq|cum|uniq|cnorm/ ) if( $options{histstyle} !~ /freq|cum|uniq|cnorm|fnorm/ )
{ {
print STDERR "unknown histstyle. Allowed are 'freq...', 'cum...', 'uniq...', 'cnorm...'\n"; print STDERR "unknown histstyle. Allowed are 'freq...', 'fnorm...', 'cum...', 'uniq...', 'cnorm...'\n";
exit -1; exit -1;
} }
@ -1539,14 +1539,11 @@ C<--histstyle style>
Normally, histograms are generated with the 'smooth frequency' gnuplot style. Normally, histograms are generated with the 'smooth frequency' gnuplot style.
C<--histstyle> can be used to select different C<smooth> settings (see the C<--histstyle> can be used to select different C<smooth> settings (see the
gnuplot C<help smooth> page for more info). Allowed values are 'frequency' (the gnuplot C<help smooth> page for more info). Allowed values are 'frequency' (the
default), 'unique', 'cumulative' and 'cnormal'. 'unique' indicates whether a bin default), 'fnormal' (available in very recent gnuplots), 'unique', 'cumulative'
has at least one item in it: instead of counting the items, it'll always report and 'cnormal'. 'fnormal' is a normalized histogram. 'unique' indicates whether a
0 or 1. 'cumulative' is the integral of the 'frequency' histogram. 'cnormal' is bin has at least one item in it: instead of counting the items, it'll always
like 'cumulative', but rescaled to end up at 1.0. Note that there's no report 0 or 1. 'cumulative' is the integral of the 'frequency' histogram.
normalized 'frequency' option because gnuplot does not provide one. 'cnormal' is like 'cumulative', but rescaled to end up at 1.0.
C<help smooth>
=item =item