math.statistics: fix a few typos in docs
parent
e8ce62c64e
commit
8b1fbbf3b7
|
@ -34,7 +34,7 @@ HELP: range
|
|||
{ $description "Computes the difference of the maximum and minimum values in " { $snippet "seq" } "." }
|
||||
{ $examples
|
||||
{ $example "USING: math.statistics prettyprint ;" "{ 1 2 3 } range ." "2" }
|
||||
{ $example "USING: math.statistics prettyprint ;" "{ 1 2 3 4 } range ." "3" } } ;
|
||||
{ $example "USING: math.statistics prettyprint ;" "{ 1 2 3 4 } range ." "3" } } ;
|
||||
|
||||
HELP: minmax
|
||||
{ $values { "seq" sequence } { "min" real } { "max" real } }
|
||||
|
@ -95,14 +95,14 @@ HELP: histogram!
|
|||
"H{ { 97 9 } { 98 2 } { 99 2 } }"
|
||||
}
|
||||
}
|
||||
{ $description "Takes an existing hashtable and uses " { $link histogram } " to continue counting the number of occurences of each element." } ;
|
||||
{ $description "Takes an existing hashtable and uses " { $link histogram } " to continue counting the number of occurrences of each element." } ;
|
||||
|
||||
HELP: sorted-histogram
|
||||
{ $values
|
||||
{ "seq" sequence }
|
||||
{ "alist" "an array of key/value pairs" }
|
||||
}
|
||||
{ $description "Outputs a " { $link histogram } " of a sequence sorted by number of occurences from lowest to highest." }
|
||||
{ $description "Outputs a " { $link histogram } " of a sequence sorted by number of occurrences from lowest to highest." }
|
||||
{ $examples
|
||||
{ $example "USING: prettyprint math.statistics ;"
|
||||
""""abababbbbbbc" sorted-histogram ."""
|
||||
|
|
Loading…
Reference in New Issue