Feature #2322

[PATCH] Add standard deviation function to Math Module

Added by Daniel Cohen over 5 years ago. Updated about 3 years ago.

[ruby-core:26473]
Status:Rejected
Priority:Normal
Assignee:Kenta Murata

Description

=begin
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.
=end

add_stdev.diff Magnifier - Patch to add standard deviation feature (982 Bytes) Daniel Cohen, 11/02/2009 05:29 AM


Related issues

Related to Ruby trunk - Feature #2321: [PATCH] Array Module sum and mean features Rejected 11/01/2009

History

#1 Updated by Kazuhiro NISHIYAMA about 5 years ago

  • Target version set to 2.0.0

=begin

=end

#2 Updated by Hiroshi Nakamura about 3 years ago

  • Description updated (diff)
  • Assignee set to Kenta Murata

#3 Updated by Shyouhei Urabe about 3 years ago

  • Status changed from Open to Assigned

#4 Updated by Kenta Murata about 3 years ago

  • Status changed from Assigned to Rejected

Why do we need to specially treat the 2nd central moment, that is standard deviation, than the other nth moment, such as skewness (3rd) and kurtosis (4th)?

You can use NArray for that reason. See http://narray.rubyforge.org/index.html.en

Also available in: Atom PDF