haskell / statistics

A fast, high quality library for computing with statistics in Haskell.
http://hackage.haskell.org/package/statistics
BSD 2-Clause "Simplified" License
299 stars 67 forks source link

Split special functions into separate package #20

Closed Shimuuar closed 12 years ago

Shimuuar commented 12 years ago

I propose to move module Statistics.Math into separate package. It contains functions which are useful on they own and not only in context of statistics. As for package name it could be special-functions

Proposed module structure is: Numeric.Polynomial.Chebyshev for Chebyshev polinomials. It makes sense to put them into separate module since there are Lagrange polynomials etc. It could get too crowded in one module. Numeric.SpecFunction for everything else.

I could handle split but I could you create repository and give me commit rights?

I think after split module Statistics.Math should be marked deprecated but still export functions for one or two releases.

bos commented 12 years ago

On Sat, Dec 10, 2011 at 12:51 PM, Aleksey Khudyakov < reply@reply.github.com

wrote:

I propose to move module Statistics.Math into separate package. It contains functions which are useful on they own and not only in context of statistics. As for package name it could be special-functions

That's a good idea. I created "math-functions" and added you as an admin: https://github.com/bos/math-functions

Proposed module structure is: Numeric.Polynomial.Chebyshev for Chebyshev polinomials. It makes sense to put them into separate module since there are Lagrange polynomials etc. It could get too crowded in one module. Numeric.SpecFunction for everything else.

I could handle split but I could you create repository and give me commit rights?

I think after split module Statistics.Math should be marked deprecated but still export functions for one or two releases.

Sounds great. Thanks!

Shimuuar commented 12 years ago

I'll start working on it but I'm quite busy right now so it'll probably take some time.

Also I want to remind that pull request which fixes serious performance problem with uniformR for integral types hangs for more than two months. (https://github.com/bos/mwc-random/pull/6). At least GHC7.0 is affected .

Shimuuar commented 12 years ago

Package math-functions is more or less release ready. Code, test suite and benchmarks are ported

I've had to copy half of Statistics.Constants to the Numeric.SpecFuntions in order to break dependency.

bos commented 12 years ago

OK, thanks for working on this - I just tagged and released 0.1.0.0.

Shimuuar commented 12 years ago

I'm reopening this since statistics doesn't use function from math-functions yet. Also I think it makes sense to move Statistics.Constants to math-functions as well. As Numeric.MathFunctions.Constants or something like that

Shimuuar commented 12 years ago

Now splitting is complete. I forgot to add few functions so another releases of math-functions is needed.