mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
can now ask for fnormal histograms
This commit is contained in:
parent
cacbedb336
commit
9e669044c7
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user