Feature #10228
closedStatistics module
Description
I'm gonna implement some features related with statistics to Math
module now.
Like that -> https://bugs.ruby-lang.org/issues/10225
But I am afraid that Math
module becomes too complex and suppose such a feature should be apart from Math
module's responsibility.
So I'd like to propose Ruby provides Statistics module. (There are plenty of room for discussion.)
As you know, python3.4 has already started to provide Statistics
module as Standard Library.
(However these are not enough, I am impressed and think that is awesome trying.)
I want Statistics
module which has the features of python's Statistics
module and some functions related with numerical analysis.
It should be helpful to make people we couldn't reach so far have interest in Ruby.
And it is important to provide as "core or standard library".
But I know there are so many reasons we should not do that, so I want to hear your opinion.
Thank you.
Updated by matz (Yukihiro Matsumoto) over 10 years ago
- Status changed from Open to Feedback
Why don't you create a gem and polish the spec before adding it in the core?
Matz.
Updated by gogotanaka (Kazuki Tanaka) over 10 years ago
@Yukihiro Matsumoto san
Oh.. I know the exchanges like that.. we have had such a talks before.. I'm so sorry for your extra trouble.
Actually I'd like to heighten the international momentum of whole Ruby community toward this field.
Anyway I'll forcus on polishing my gem (have already created)
gogo.
Updated by shevegen (Robert A. Heiler) over 10 years ago
I concur that statistics would be useful.
For bioinformatics I am forced to use R (http://www.r-project.org/) right now.
Hopefully I can one day replace all of why I have to use R with Ruby (I guess the
biggest problem are not the routines/methods or algorithms but actually those
plotting options).
A gem can showcase what can be done with statistics addon.
A require line could then be:
require 'math/statistics'
or just
require 'statistics'
MS Excel / Libreoffice have quite a lot of standard statistic functions.
AVG() or AVEDEV() or AVERAGEA() and so forth.
Just giving a bit feedback, don't take me too seriously. :)
Updated by david_macmahon (David MacMahon) over 10 years ago
The Ruby/GSL gem provides a Ruby interface to GSL which provides a great deal of statistical functionality and much more besides. Maybe that would meet your needs?
On Sep 13, 2014, at 3:56 PM, shevegen@gmail.com wrote:
Issue #10228 has been updated by Robert A. Heiler.
I concur that statistics would be useful.
For bioinformatics I am forced to use R (http://www.r-project.org/) right now.
Hopefully I can one day replace all of why I have to use R with Ruby (I guess the
biggest problem are not the routines/methods or algorithms but actually those
plotting options).A gem can showcase what can be done with statistics addon.
A require line could then be:
require 'math/statistics'
or just
require 'statistics'
MS Excel / Libreoffice have quite a lot of standard statistic functions.
AVG() or AVEDEV() or AVERAGEA() and so forth.Just giving a bit feedback, don't take me too seriously. :)
Feature #10228: Statistics module
https://bugs.ruby-lang.org/issues/10228#change-48891
- Author: gogo tanaka
- Status: Feedback
- Priority: Normal
- Assignee:
- Category:
- Target version:
I'm gonna implement some features related with statistics to
Math
module now.Like that -> https://bugs.ruby-lang.org/issues/10225
But I am afraid that
Math
module becomes too complex and suppose such a feature should be apart fromMath
module's responsibility.So I'd like to propose Ruby provides Statistics module. (There are plenty of room for discussion.)
As you know, python3.4 has already started to provide
Statistics
module as Standard Library.
(However these are not enough, I am impressed and think that is awesome trying.)I want
Statistics
module which has the features of python'sStatistics
module and some functions related with numerical analysis.It should be helpful to make people we couldn't reach so far have interest in Ruby.
And it is important to provide as "core or standard library".
But I know there are so many reasons we should not do that, so I want to hear your opinion.
Thank you.
Updated by gogotanaka (Kazuki Tanaka) about 10 years ago
Associated revision 10225
Updated by gogotanaka (Kazuki Tanaka) about 10 years ago
@robert (Robert Gleeson) A. Heiler
oh, I'm sorry for missing your nice comment.
Hopefully I can one day replace all of why I have to use R with Ruby (I guess the
biggest problem are not the routines/methods or algorithms but actually those
plotting options).
I have same dream too. Fortunately, developing DataFrame library with Ruby become popular.
We may replace all of why we have to use R with Ruby in the not so distant future.
Updated by duerst (Martin Dürst) about 10 years ago
- Related to Feature #10552: [PATCH] Add Enumerable#frequencies and Enumerable#relative_frequencies added