git.shiar.nl
/
barcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6b073cd
)
markers < > at standard deviation offsets
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 5 Sep 2019 01:54:41 +0000
(
03:54
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 5 Sep 2019 03:11:33 +0000
(
05:11
+0200)
graph
patch
|
blob
|
history
diff --git
a/graph
b/graph
index 0d9db2e51c4aa110a11dabedb1219db7c3107f9b..096586e9e04547e1c59d6db804f938a7e28124db 100755
(executable)
--- a/
graph
+++ b/
graph
@@
-42,6
+42,8
@@
my @barmark;
if ($opt{markers} // 1 and $size > 0) {
sub orderpos { (($order[$_[0]] + $order[$_[0] + .5]) / 2 - $minval) * $size }
$barmark[ (sum(@order) / @order - $minval) * $size ] = '='; # average
if ($opt{markers} // 1 and $size > 0) {
sub orderpos { (($order[$_[0]] + $order[$_[0] + .5]) / 2 - $minval) * $size }
$barmark[ (sum(@order) / @order - $minval) * $size ] = '='; # average
+ $barmark[ orderpos($#order * .31731) ] = '>';
+ $barmark[ orderpos($#order * .68269) ] = '<';
$barmark[ orderpos($#order / 2) ] = '+'; # mean
$barmark[ -$minval * $size ] = '|' if $minval < 0; # zero
defined and $opt{color} and $_ = "\e[36m$_\e[0m" for @barmark;
$barmark[ orderpos($#order / 2) ] = '+'; # mean
$barmark[ -$minval * $size ] = '|' if $minval < 0; # zero
defined and $opt{color} and $_ = "\e[36m$_\e[0m" for @barmark;
@@
-112,9
+114,20
@@
the sum of all values divided by the number of counted lines.
=item B<+>
=item B<+>
-Median:
+Me
an, me
dian:
the middle value or average between middle values.
the middle value or average between middle values.
+=item B<<>
+
+Standard deviation left of the mean.
+Only 16% of all values are lower.
+
+=item B<< > >>
+
+Standard deviation right of the mean.
+The part between B<< <--> >> encompass all I<normal> results,
+or 68% of all entries.
+
=back
=item -w, --width=<columns>
=back
=item -w, --width=<columns>