Averages/Mode: Difference between revisions

Content added Content deleted
m (→‎REXX Version 2: fix -- problem)
m (added whitespace before the TOC (table of contents), added section headers.)
Line 1: Line 1:
{{task|Probability and statistics}}
{{task|Probability and statistics}}Write a program to find the [[wp:Mode (statistics)|mode]] value of a collection. The case where the collection is empty may be ignored. Care must be taken to handle the case where the mode is non-unique.
;Task:
Write a program to find the [[wp:Mode (statistics)|mode]] value of a collection.

The case where the collection is empty may be ignored. Care must be taken to handle the case where the mode is non-unique.


If it is not appropriate or possible to support a general collection, use a vector (array), if possible. If it is not appropriate or possible to support an unspecified value type, use integers.
If it is not appropriate or possible to support a general collection, use a vector (array), if possible. If it is not appropriate or possible to support an unspecified value type, use integers.


;See also:
See also: [[Averages/Arithmetic mean|Mean]], [[Averages/Median|Median]]
[[Averages/Arithmetic mean|Mean]], [[Averages/Median|Median]]
<br><br>


=={{Header|ActionScript}}==
=={{Header|ActionScript}}==