Feature #2321
[PATCH] Array Module sum and mean features
| Status: | Rejected | Start date: | 11/01/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | - |
Description
I have created a new patch for the Array Module of Ruby. The patch adds two complementary features: A sum function, that sums the elements in an array if they are numbers; and a mean (or average) function that finds the mean of the elements in the the array using the sum function. Attached is a patch to implement these features. I apologize in advance if this has already been proposed. Sincerely, Daniel Cohen
Related issues
| related to ruby-trunk - Feature #2322: [PATCH] Add standard deviation function to Math Module | Open | 11/02/2009 |
History
Updated by Yusuke Endoh almost 2 years ago
- Status changed from Open to Rejected
Hi, > I have created a new patch for the Array Module of Ruby. The patch adds two complementary features: A sum function, that sums the elements in an array if they are numbers; and a mean (or average) function that finds the mean of the elements in the the array using the sum function. Attached is a patch to implement these features. This suggestion was discussed on the thread from [ruby-core:26463], and was rejected by matz [ruby-core:26481]. So I close this ticket. -- Yusuke Endoh <mame@tsg.ne.jp>