Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on May 5, 2015
  1. @jamescgibson @trevnorris

    Tests for the student t distribution

    jamescgibson authored trevnorris committed
    PR-URL: #138
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Apr 29, 2015
  1. @trevnorris

    Merge branch '1.1'

    trevnorris authored
    Conflicts:
    	package.json
  2. @kbroman @trevnorris

    Add non-central-t distribution and tests

    kbroman authored trevnorris committed
    The code does have convergence issues when the non-centrality parameter
    is large. (It can give inaccurate results.)
    
    Fixes: #131
    PR-URL: #135
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  3. @jamescgibson @trevnorris

    Fix incorrect formula for beta distribution

    jamescgibson authored trevnorris committed
    The formula for the mode of the beta distribution was incorrect.
    Corrected using Wolfram Alpha as test reference.
    
    Fixes: #133
    PR-URL: #134
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Jan 22, 2015
  1. @jamescgibson @trevnorris

    Triangular Distribution returning NaN

    jamescgibson authored trevnorris committed
    The triangular pdf suffered from a bug in which, when c === a (c === b),
    the function would return NaN. Special cases added to avoid dividing by
    c - a (c - b).
    
    PR-URL: #124
    Fixes: #101
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Jan 5, 2015
  1. @jamescgibson @trevnorris

    Begin Clarifying Gamma Function Names

    jamescgibson authored trevnorris committed
    The commit that fixed #117 changed gammap from implementing the lower
    regularized incomplete gamma function to the lower incompelte gamma
    function. Add the lowRegGamma() function to keep the old functionality,
    such that all existing tests pass.
    
    Improve documetnation to reflect these changes.
    
    PR-URL: #122
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Dec 30, 2014
  1. @jamescgibson @trevnorris

    fix the centralF Distribution x = 0

    jamescgibson authored trevnorris committed
    Add tests for the central f distribution's pdf where x = 0.0. There are
    two special cases that are not handled by the general form of the
    central F distribution's pdf (df1 = 1 and df2 = 1; df1 = 2 and df2 = 1);
    handle these with specific checks.
    
    Fixes: #97
    PR-URL: #119
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  2. @jamescgibson @trevnorris

    Remove unneeded .isNumber calls

    jamescgibson authored trevnorris committed
    Vows .epislon now checks if the argument is a number, no longer
    necessary.
    
    PR-URL: #119
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  3. @jamescgibson @trevnorris

    Add tests for the ChiSquare Distribution

    jamescgibson authored trevnorris committed
    Confirms that f16411c successfully fixes
    #98
    
    Fixes: #98
    PR-URL: #120
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Dec 19, 2014
  1. @trevnorris

    Fix gammap()

    trevnorris authored
    Also add minimal tests to check both logic branches in gammap().
    
    Fixes: #117
    Signed-off-by: Trevor Norris <trev.norris@gmail.com>
  2. @jamescgibson @trevnorris

    Adding tests for the normal pdf

    jamescgibson authored trevnorris committed
    PR-URL: #118
    Fixes: #113
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Dec 17, 2014
  1. @cmpolis @trevnorris

    Add additional vector functions

    cmpolis authored trevnorris committed
    Add histogram() to get histogram/bin count data, kurtosis() and
    skewness().
    
    PR-URL: #111
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  2. @jamescgibson @trevnorris

    Refactor distribution tests to multiple files

    jamescgibson authored trevnorris committed
    PR-URL: #115
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Dec 3, 2014
  1. @tlsim @trevnorris

    Add cumreduce function

    tlsim authored trevnorris committed
    Add cumulative array/matrix sum and product in terms of cumulative
    reduce.
    
    PR-URL: #112
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  2. @tlsim @trevnorris

    Add exp and log linear algebra functions.

    tlsim authored trevnorris committed
    PR-URL: #112
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Nov 8, 2014
  1. @jamescgibson @trevnorris

    Add uniform.inv API and tests

    jamescgibson authored trevnorris committed
    Also added tests for previously untested uniform.pdf and uniform.cdf
    functions.
    
    PR-URL: #110
    Fixes: #109
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Oct 31, 2014
  1. @jamescgibson @trevnorris

    Prevent overflow error in centralF pdf

    jamescgibson authored trevnorris committed
    Use the algorithm found in the R source to calculate the centralF pdf,
    which avoids large exponentiation and hence doesn't suffer from NaN
    overflow errors.
    
    Fixes: #100
    PR-URL: #107
    Signed-off-by: Trevor Norris <trev.norris@gmail.com>
  2. @jamescgibson @trevnorris

    Removing duplicate distribution tests

    jamescgibson authored trevnorris committed
    Test group for binomial pdf was exactly duplicated
    
    PR-URL: #107
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Sep 30, 2014
  1. @jamescgibson @trevnorris

    Fix bug in gauss_elimination and add tests

    jamescgibson authored trevnorris committed
    Add tests for gaussian elimination function. Tests uncovered a bug; for
    matricies of dimension greater than 3, the results of gauss_elimination
    would always fail because of a problem in the back-substitution portion
    of the algorithm. Bug has been fixed.
    
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  2. @jamescgibson @trevnorris

    Add more linear algebra tests

    jamescgibson authored trevnorris committed
    Fix a small bug in the .inv() method. While .inv() returned the correct
    inverse, it did so with an additional column at index '-1'. Although the
    other functions in the library ignored the '-1' column, the additional
    column prevented equality comparisons. This has been fixed.
    
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Sep 5, 2014
  1. @jamescgibson @trevnorris

    Add tests for various linear algebra functions

    jamescgibson authored trevnorris committed
    Additionally, fixed a small bug that prevented .dot() and .angle() from
    being called on a jStat object, as opposed to as a static function.
    
    There are still untested functions in the linear algebra library, and it
    does not make sense that all of the linear algebra functions can be
    called on a jStat() object but only accept plain matricies as arguments.
    This future change will be made easier with fuller test coverage.
    
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Sep 4, 2014
  1. @trevnorris
  2. @trevnorris

    Revert "Fix studentt inv test"

    trevnorris authored
    This reverts commit 07b5f08.
Commits on Sep 3, 2014
  1. @trevnorris

    Fix studentt inv test

    trevnorris authored
    Signed-off-by: Trevor Norris <trev.norris@gmail.com>
  2. @jamescgibson @trevnorris

    Add Tests for Binomial Distribution

    jamescgibson authored trevnorris committed
    Added automated tests for the binomial distribution for future
    refactoring.
    
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  3. @jamescgibson @trevnorris

    Add Tests for Binomial Distribution

    jamescgibson authored trevnorris committed
    Added automated tests for the binomial distribution for future
    refactoring.
    
    Signed-off-by: Trevor Norris <trev.norris@gmail.com>
  4. @jamescgibson @trevnorris

    Return correct values for jStat.studentt.inv

    jamescgibson authored trevnorris committed
    Added tests for the studentt.pdf, .cdf, and .inv methods. Fixed an issue
    with the .inv method (always returned positive values).
    
    Fixes: #88
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Aug 5, 2014
  1. @joaojeronimo @trevnorris

    Fix negbin.pdf()

    joaojeronimo authored trevnorris committed
    Also add tests for negbin.pdf() and negbin.cdf().
    
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Jul 31, 2014
  1. @trevnorris

    Fix returning NaN for smaller integer values

    trevnorris authored
    When beta.pdf() was changed to use log format in f89649 to not return
    NaN for large values it introduced a bug where NaN was returned for
    smaller integer values.
  2. @trevnorris
Commits on Jul 29, 2014
  1. @adamnovak @trevnorris

    Improve Hypergeometric CDF and PDF

    adamnovak authored trevnorris committed
    Add test that demonstrates how the hypergeometric PDF sometimes returns
    NaN when working with large populations and large samples.
    
    Add a test to make sure the hypergeometric PDF agrees with the basic
    implementation for a range of parameter values.
    
    Fix documentation header formatting.
    
    Add more advanced algorithm for the hypergeometric CDF.
    
    Change hypergeometric PDF to use the difference in the CDF to work
    better with large parameter values.
    
    Reviewed-by: Trevor Norris <trev.norris@gmail.com>
Commits on Jul 15, 2014
  1. @adamnovak @trevnorris

    Add test for hypergeometric PDF

    adamnovak authored trevnorris committed
    Adding a test that demonstrates how the hypergeometric PDF sometimes
    returns NaN when trying to work with large populations and large
    samples.
    
    Signed-off-by: Trevor Norris <trev.norris@gmail.com>
  2. @cesutherland @trevnorris

    Fix instance pdf methods at 0

    cesutherland authored trevnorris committed
    * Add  check for the gamma distribution instance vs. static pdf method
    * Fix distribution instance pdf to allow 0.
    
    Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Commits on May 7, 2014
  1. @trevnorris

    Use assert.epsilon()

    trevnorris authored
    This is a method added to the vows API, but hasn't made it to the
    documentation yet.
  2. @maciejkula @trevnorris

    Add percentileOfScore()

    maciejkula authored trevnorris committed
    Add function to calculate the percentile rank of a value in an array.
    
    Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Something went wrong with that request. Please try again.