Class: Rupee::Statistics
- Inherits:
-
Object
- Object
- Rupee::Statistics
- Defined in:
- ext/rupee/statistics.c
Class Method Summary collapse
-
.bnd(x, y, rho) ⇒ Object
Returns the bivariate normal distribution function.
-
.correlation(xvalues, yvalues) ⇒ Object
Returns the correlation of the supplied x- and y-values.
-
.covariance(xvalues, yvalues) ⇒ Object
Returns the covariance of the supplied x- and y-values.
-
.cnd(z) ⇒ Object
Returns the standard normal cumulative distribution (has a mean of zero and a standard deviation of one).
-
.cndev(U) ⇒ Object
Returns the inverse cumulative normal distribution function.
-
.mean(values) ⇒ Object
Finds the mean of the specified values.
-
.cnd(z) ⇒ Object
Returns the standard normal cumulative distribution (has a mean of zero and a standard deviation of one).
-
.pdf(z) ⇒ Object
Returns the probability density function.
-
.standard_deviation(values) ⇒ Object
Finds the standard deviation of the specified values.
-
.sum(values) ⇒ Object
Finds the sum of the specified values.
-
.variance(values) ⇒ Object
Finds the variance of the specified values.
Class Method Details
.bnd(x, y, rho) ⇒ Object
Returns the bivariate normal distribution function
203 204 205 |
# File 'ext/rupee/statistics.c', line 203 static VALUE rupee_bnd(self, _x, _y, _rho) VALUE self, _x, _y, _rho; |
.correlation(xvalues, yvalues) ⇒ Object
Returns the correlation of the supplied x- and y-values.
243 244 245 |
# File 'ext/rupee/statistics.c', line 243 static VALUE rupee_corr(self, _xvals, _yvals) VALUE self, _xvals, _yvals; |
.covariance(xvalues, yvalues) ⇒ Object
Returns the covariance of the supplied x- and y-values.
260 261 262 |
# File 'ext/rupee/statistics.c', line 260 static VALUE rupee_cov(self, _xvals, _yvals) VALUE self, _xvals, _yvals; |
.cnd(z) ⇒ Object
Returns the standard normal cumulative distribution (has a mean of zero and a standard deviation of one).
221 222 223 |
# File 'ext/rupee/statistics.c', line 221 static VALUE rupee_cnd(self, _z) VALUE self, _z; |
.cndev(U) ⇒ Object
Returns the inverse cumulative normal distribution function
232 233 234 |
# File 'ext/rupee/statistics.c', line 232 static VALUE rupee_cndev(self, _U) VALUE self, _U; |
.mean(values) ⇒ Object
Finds the mean of the specified values.
277 278 279 |
# File 'ext/rupee/statistics.c', line 277 static VALUE rupee_mean(self, _values) VALUE self, _values; |
.cnd(z) ⇒ Object
Returns the standard normal cumulative distribution (has a mean of zero and a standard deviation of one).
221 222 223 |
# File 'ext/rupee/statistics.c', line 221 static VALUE rupee_cnd(self, _z) VALUE self, _z; |
.pdf(z) ⇒ Object
Returns the probability density function
304 305 306 |
# File 'ext/rupee/statistics.c', line 304 static VALUE rupee_pdf(self, _z) VALUE self, _z; |
.standard_deviation(values) ⇒ Object
Finds the standard deviation of the specified values.
315 316 317 |
# File 'ext/rupee/statistics.c', line 315 static VALUE rupee_std(self, _values) VALUE self, _values; |
.sum(values) ⇒ Object
Finds the sum of the specified values.
331 332 333 |
# File 'ext/rupee/statistics.c', line 331 static VALUE rupee_sum(self, _values) VALUE self, _values; |
.variance(values) ⇒ Object
Finds the variance of the specified values.
347 348 349 |
# File 'ext/rupee/statistics.c', line 347 static VALUE rupee_var(self, _values) VALUE self, _values; |