Skip to content

Commit

Permalink
renamed inverse_normal_distribution to inverse_normal_cdf
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 25, 2012
1 parent adc555a commit 6ef226b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/shogun/mathematics/Statistics.cpp
Expand Up @@ -263,7 +263,7 @@ float64_t CStatistics::inverse_incomplete_beta(float64_t a, float64_t b,
{
dithresh=1.0e-4;
}
yp=-inverse_normal_distribution(y);
yp=-inverse_normal_cdf(y);
if (greater(y, 0.5))
{
rflg=1;
Expand Down Expand Up @@ -741,7 +741,7 @@ float64_t CStatistics::incomplete_beta(float64_t a, float64_t b, float64_t x)
return result;
}

float64_t CStatistics::inverse_normal_distribution(float64_t y0)
float64_t CStatistics::inverse_normal_cdf(float64_t y0)
{
float64_t expm2;
float64_t s2pi;
Expand Down Expand Up @@ -1285,7 +1285,7 @@ float64_t CStatistics::inverse_incomplete_gamma_completed(float64_t a,
yh=1;
dithresh=5*igammaepsilon;
d=1/(9*a);
y=1-d-inverse_normal_distribution(y0)*CMath::sqrt(d);
y=1-d-inverse_normal_cdf(y0)*CMath::sqrt(d);
x=a*y*y*y;
lgm=lgamma(a);
i=0;
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/mathematics/Statistics.h
Expand Up @@ -155,7 +155,7 @@ class CStatistics: public CSGObject
*
* Taken from ALGLIB under gpl2+
*/
static float64_t inverse_normal_distribution(float64_t y0);
static float64_t inverse_normal_cdf(float64_t y0);

/** @return natural logarithm of the gamma function of input */
static inline float64_t lgamma(float64_t x)
Expand Down

0 comments on commit 6ef226b

Please sign in to comment.