« Return to Thread: [ruby-core:26488] Add Standard Deviation Function to Math Module

[ruby-core:26489] Re: Add Standard Deviation Function to Math Module

by Yukihiro Matsumoto :: Rate this Message:

Reply to Author | View in Thread

Hi,

In message "Re: [ruby-core:26488] Add Standard Deviation Function to Math Module"
    on Tue, 3 Nov 2009 04:49:47 +0900, Daniel Cohen <danielc2017@...> writes:

|This patch adds a Standard Deviation function to the Math Module. It takes
|an array and finds the standard deviation of all its elements, as long as
|they are numbers. Do you think this belongs in the Math or Array Modules?

Functions in Math modules are taken from math function in UNIX, at
least on some platforms.  So, adding other function may require some
discussion.   Maybe we need to add such functions to some statistic
related module.

                                                        matz.

 « Return to Thread: [ruby-core:26488] Add Standard Deviation Function to Math Module