Talk:Averages/Mode: Difference between revisions

From Rosetta Code
Content added Content deleted
(suggest Average/Mode for page name)
Line 16: Line 16:
--[[User:PauliKL|PauliKL]] 14:58, 14 August 2009 (UTC)
--[[User:PauliKL|PauliKL]] 14:58, 14 August 2009 (UTC)
:That sounds OK to me. --[[User:Mwn3d|Mwn3d]] 15:05, 14 August 2009 (UTC)
:That sounds OK to me. --[[User:Mwn3d|Mwn3d]] 15:05, 14 August 2009 (UTC)

How about subpage style: [[Average/Mode]]? Then we can have [[Average/Median]], [[Average/Harmonic mean]] and so on [[wp:Average#Types|and so forth]], and all of them will sort together in one place in task lists. --[[User:Kevin Reid|Kevin Reid]] 16:05, 14 August 2009 (UTC)

Revision as of 16:05, 14 August 2009

Typing

Rereading the task text to check my C implementation compliance, I've noticed it asks the mode for a vector of integers. Shouldn't this requirement be relaxed, e.g. with "vector of numbers" instead? --ShinTakezou 13:33, 14 June 2009 (UTC)

I think it can be open to all types of objects. Since all we need is a count of how many of each thing there is, and don't need to do arithmetic on the values, they don't need to be numbers, right? Perhaps we can allow them to use a collection of integers or floats or other objects, whichever is easiest in their language. --Spoon! 03:08, 15 June 2009 (UTC)
The Tcl version can also do any type too as it happens (strictly any value supporting comparison for equality with another value, but all values do in Tcl). I avoided saying "numbers" because it's much less clear as to what that means and I want to keep things simple for the strictly-typed folks. —Donal Fellows 08:10, 15 June 2009 (UTC)
Also, I used “vector” because that language was used in several related tasks. —Donal Fellows 13:57, 15 June 2009 (UTC)

Similarity with other tasks

This task is similar to Anagrams. Perhaps we can borrow ideas from that page. --Spoon! 03:08, 15 June 2009 (UTC)

There are also similarities with Image histogram really. All are constructing histograms over some set of values. —Donal Fellows 08:10, 15 June 2009 (UTC)
Also Max Licenses In Use --76.173.203.58 18:49, 18 June 2009 (UTC)

The name of the task

The name of the task, "Mode", is not very descriptive when seen out of context (e.g. in the alphabetic list of tasks). Maybe it should be renamed to something like "Mode (statistics)"? --PauliKL 14:58, 14 August 2009 (UTC)

That sounds OK to me. --Mwn3d 15:05, 14 August 2009 (UTC)

How about subpage style: Average/Mode? Then we can have Average/Median, Average/Harmonic mean and so on and so forth, and all of them will sort together in one place in task lists. --Kevin Reid 16:05, 14 August 2009 (UTC)