[ruby-core:65076] [ruby-trunk - Feature #10225] [PATCH] *math.c: New method Math.normcdf

From: davidm@...
Date: 2014-09-17 04:49:30 UTC
List: ruby-core #65076
Issue #10225 has been updated by David MacMahon.


 On Sep 16, 2014, at 4:14 PM, mail@tanakakazuki.com wrote:
 
 > Actually I know that gem(how nice it is!), I'm disconsolate about a few people knowing that gem.
 
 The gsl gem has its issues (memory management and it can be kind of clunky to use sometimes), but it really does provide a great deal of numerical functionality.
 
 > Even if Ruby/GSL is as strong as python's one, most of people(include me) don't use it.
 > 
 > As for numerical analysis, stability, accuracy or reliability are most important things.
 
 Is the GSL itself somehow deficient for your needs?  It is also an open source project, so I'm (almost) sure patches would be welcome.  Ruby/GSL is also open source, though admittedly under-maintained. :-(
 
 > In this respect, I believe that to provide such a feature "as official" is helpful.
 
 I agree that having numerical capabilities better supported would be a great thing, but I'm not sure that the Math module is the best place to do so.  There are so many things that could be added!  Where would it end? :-)
 
 Dave

----------------------------------------
Feature #10225: [PATCH] *math.c: New method Math.normcdf 
https://bugs.ruby-lang.org/issues/10225#change-48942

* Author: gogo tanaka
* Status: Open
* Priority: Normal
* Assignee: 
* Category: math
* Target version: current: 2.2.0
----------------------------------------
I know it looks kind of arbitrary or unnecessary feature ,but I believe that

to provide such a feature as official is helpful to make people we couldn't reach so far have interest in Ruby.

(Actually only this feature is not enough to do that..)

By the way I still wonder whether naming method make sense.

Debating between ...

```
Math::pnorm   -> R language use this
Math::phi     -> Euler's totient function is more popular as phi,
Math::ncdf
Math::guesscdf
Math::cdf_of_norm,
Math::cdf_of_guess
```

Finally I come to the conclusion Math::normcdf is most proper length, meaning and has no other worries.

---Files--------------------------------
_ math.c New method Math.normcdf.PATCH (1.04 KB)
_ test_math.rb Add tests for Math.normcdf.PATCH (609 Bytes)
_ NEWS About Math.normcdf.PATCH (488 Bytes)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next