Project

General

Profile

Actions

Feature #2322

closed

[PATCH] Add standard deviation function to Math Module

Feature #2322: [PATCH] Add standard deviation function to Math Module

Added by danielc192 (Daniel Cohen) almost 16 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
[ruby-core:26473]

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


Files

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

Related issues 1 (0 open1 closed)

Related to Ruby - Feature #2321: [PATCH] Array Module sum and mean featuresRejectedActions

Updated by znz (Kazuhiro NISHIYAMA) over 15 years ago Actions #1

  • Target version set to 2.0.0

=begin

=end

Updated by nahi (Hiroshi Nakamura) over 13 years ago Actions #2 [ruby-core:43388]

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

Updated by shyouhei (Shyouhei Urabe) over 13 years ago Actions #3

  • Status changed from Open to Assigned

Updated by mrkn (Kenta Murata) over 13 years ago Actions #4 [ruby-core:43476]

  • 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

Actions

Also available in: PDF Atom