spreadsheet
typeScript/javascript spreadsheet parser, with formulas.
git clone https://git.vogt.world/spreadsheet.git
Log | Files | README.md
← All files
name: dist/Utilities/MathHelpers.d.ts
-rw-r--r--
3852
 1/**
 2 * Returns the continued fraction for the incomplete Beta function with parameters a and b modified by Lentz's method
 3 * evaluated at x. For more information see http://jstat.github.io/special-functions.html#betacf
 4 */
 5declare function betacf(x: any, a: any, b: any): any;
 6/**
 7 * Returns the incomplete Beta function evaluated at (x,a,b). See http://jstat.github.io/special-functions.html#ibeta
 8 * for more information.
 9 */
10declare function ibeta(x: any, a: any, b: any): number;
11/**
12 * Returns the inverse of the incomplete Beta function evaluated at (p,a,b). For more information see
13 * http://jstat.github.io/special-functions.html#ibetainv
14 */
15declare function ibetainv(p: any, a: any, b: any): any;
16/**
17 * http://jstat.github.io/distributions.html
18 */
19declare function inv(x: any, df1: any, df2: any): number;
20/**
21 * Return the standard deviation of a vector. By defaut, the population standard deviation is returned. Passing true
22 * for the flag parameter returns the sample standard deviation. See http://jstat.github.io/vector.html#stdev for
23 * more information.
24 */
25declare function stdev(arr: any, flag: any): number;
26/**
27 * Return the variance of a vector. By default, the population variance is calculated. Passing true as the flag
28 * indicates computes the sample variance instead. See http://jstat.github.io/vector.html#variance for more
29 * information.
30 */
31declare function variance(arr: any, flag: any): number;
32/**
33 * Return the sum of a vector. See http://jstat.github.io/vector.html#sum for more information.
34 */
35declare function sum(arr: any): number;
36/**
37 * Return the mean of a vector. See http://jstat.github.io/vector.html#mean for more information.
38 */
39declare function mean(arr: any): number;
40/**
41 * Return the sum of squared errors of prediction of a vector. See http://jstat.github.io/vector.html#sumsqerr for
42 * more information.
43 */
44declare function sumsqerr(arr: any): number;
45/**
46 * Return the covariance of two vectors. See http://jstat.github.io/vector.html#covariance for more information.
47 */
48declare function covariance(arr1: any, arr2: any): number;
49/**
50 * Returns the Log-Gamma function evaluated at x. See http://jstat.github.io/special-functions.html#gammaln for more
51 * information.
52 */
53declare function gammaln(x: any): number;
54/**
55 * Returns the Gamma function evaluated at x. This is sometimes called the 'complete' gamma function. See
56 * http://jstat.github.io/special-functions.html#gammafn for more information.
57 */
58declare function gammafn(x: any): any;
59/**
60 * Returns the value of x in the cdf of the Gamma distribution with the parameters shape (k) and scale (theta). Notice
61 * that if using the alpha beta convention, scale = 1/beta. For more information see
62 * http://jstat.github.io/distributions.html#jStat.gamma.cdf
63 */
64declare function cdf(x: any, df1: any, df2: any): number;
65/**
66 * Returns the error function evaluated at x. See also:
67 *
68 * * http://jstat.github.io/special-functions.html#erf
69 *
70 * * https://github.com/jstat/jstat/search?utf8=%E2%9C%93&q=erf&type=
71 *
72 * @param x to evaluate
73 * @returns {number} error
74 */
75declare function erf(x: any): number;
76/**
77 * Returns the value of x in the pdf of the Gamma distribution with the parameters shape (k) and scale (theta). Notice
78 * that if using the alpha beta convention, scale = 1/beta. For more information see
79 * http://jstat.github.io/distributions.html#jStat.gamma.pdf
80 */
81declare function pdf(x: any, df1: any, df2: any): number;
82declare function betaln(x: any, y: any): number;
83declare function betafn(x: any, y: any): number;
84/**
85 * Cleans a float number.
86 * @param n - number to clean
87 * @returns {number} -  clean number
88 */
89declare function cleanFloat(n: any): number;
90export { betacf, betafn, betaln, cdf, covariance, erf, gammafn, gammaln, ibeta, ibetainv, inv, mean, pdf, stdev, sum, sumsqerr, variance, cleanFloat };