UNPKG

5.13 kBTypeScriptView Raw
1// # simple-statistics
2//
3// A simple, literate statistics system.
4
5// Linear Regression
6export { default as linearRegression } from './src/linear_regression';
7export { default as linearRegressionLine } from './src/linear_regression_line';
8export { default as standardDeviation } from './src/standard_deviation';
9export { default as rSquared } from './src/r_squared';
10export { default as mode } from './src/mode';
11export { default as modeFast } from './src/mode_fast';
12export { default as modeSorted } from './src/mode_sorted';
13export { default as min } from './src/min';
14export { default as max } from './src/max';
15export { default as minSorted } from './src/min_sorted';
16export { default as maxSorted } from './src/max_sorted';
17export { default as sum } from './src/sum';
18export { default as sumSimple } from './src/sum_simple';
19export { default as product } from './src/product';
20export { default as quantile } from './src/quantile';
21export { default as quantileSorted } from './src/quantile_sorted';
22export { default as quantileRank } from './src/quantile_rank';
23export { default as quantileRankSorted } from './src/quantile_rank_sorted';
24export { default as interquartileRange, default as iqr } from './src/interquartile_range';
25export { default as medianAbsoluteDeviation, default as mad } from './src/median_absolute_deviation';
26export { default as chunk } from './src/chunk';
27export { default as sampleWithReplacement } from './src/sample_with_replacement';
28export { default as shuffle } from './src/shuffle';
29export { default as shuffleInPlace } from './src/shuffle_in_place';
30export { default as sample } from './src/sample';
31export { default as ckmeans } from './src/ckmeans';
32export { default as uniqueCountSorted } from './src/unique_count_sorted';
33export { default as sumNthPowerDeviations } from './src/sum_nth_power_deviations';
34export { default as equalIntervalBreaks } from './src/equal_interval_breaks';
35
36// sample statistics
37export { default as sampleCovariance } from './src/sample_covariance';
38export { default as sampleCorrelation } from './src/sample_correlation';
39export { default as sampleVariance } from './src/sample_variance';
40export { default as sampleStandardDeviation } from './src/sample_standard_deviation';
41export { default as sampleSkewness } from './src/sample_skewness';
42export { default as sampleKurtosis } from './src/sample_kurtosis';
43
44// combinatorics
45export { default as permutationsHeap } from './src/permutations_heap';
46export { default as combinations } from './src/combinations';
47export { default as combinationsReplacement } from './src/combinations_replacement';
48
49// measures of centrality
50export { default as addToMean } from './src/add_to_mean';
51export { default as combineMeans } from './src/combine_means';
52export { default as combineVariances } from './src/combine_variances';
53export { default as geometricMean } from './src/geometric_mean';
54export { default as harmonicMean } from './src/harmonic_mean';
55export { default as average, default as mean } from './src/mean';
56export { default as median } from './src/median';
57export { default as medianSorted } from './src/median_sorted';
58export { default as subtractFromMean } from './src/subtract_from_mean';
59
60export { default as rootMeanSquare, default as rms } from './src/root_mean_square';
61export { default as variance } from './src/variance';
62export { default as tTest } from './src/t_test';
63export { default as tTestTwoSample } from './src/t_test_two_sample';
64// ss.jenks = require('./src/jenks');
65
66// Classifiers
67export { default as BayesianClassifier, default as bayesian } from './src/bayesian_classifier';
68export { default as PerceptronModel, default as perceptron } from './src/perceptron';
69
70// Distribution-related methods
71export { default as epsilon } from './src/epsilon'; // We make ε available to the test suite.
72export { default as factorial } from './src/factorial';
73export { default as bernoulliDistribution } from './src/bernoulli_distribution';
74export { default as binomialDistribution } from './src/binomial_distribution';
75export { default as poissonDistribution } from './src/poisson_distribution';
76export { default as chiSquaredDistributionTable } from './src/chi_squared_distribution_table';
77export { default as chiSquaredGoodnessOfFit } from './src/chi_squared_goodness_of_fit';
78export { default as kernelDensityEstimation, default as kde } from './src/kernel_density_estimation';
79
80// Normal distribution
81export { default as zScore } from './src/z_score';
82export { default as cumulativeStdNormalProbability } from './src/cumulative_std_normal_probability';
83export { default as standardNormalTable } from './src/standard_normal_table';
84export { default as errorFunction, default as erf } from './src/error_function';
85export { default as inverseErrorFunction } from './src/inverse_error_function';
86export { default as probit } from './src/probit';
87
88// Root-finding methods
89export { default as bisect } from './src/bisect';
90
91// Utils
92export { default as quickselect } from './src/quickselect';
93export { default as sign } from './src/sign';
94export { default as numericSort } from './src/numeric_sort';