UNPKG

5.51 kBJavaScriptView 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 extent } from "./src/extent";
16export { default as minSorted } from "./src/min_sorted";
17export { default as maxSorted } from "./src/max_sorted";
18export { default as extentSorted } from "./src/extent_sorted";
19export { default as sum } from "./src/sum";
20export { default as sumSimple } from "./src/sum_simple";
21export { default as product } from "./src/product";
22export { default as quantile } from "./src/quantile";
23export { default as quantileSorted } from "./src/quantile_sorted";
24export { default as quantileRank } from "./src/quantile_rank";
25export { default as quantileRankSorted } from "./src/quantile_rank_sorted";
26export {
27 default as interquartileRange,
28 default as iqr
29} from "./src/interquartile_range";
30export {
31 default as medianAbsoluteDeviation,
32 default as mad
33} from "./src/median_absolute_deviation";
34export { default as chunk } from "./src/chunk";
35export {
36 default as sampleWithReplacement
37} from "./src/sample_with_replacement";
38export { default as shuffle } from "./src/shuffle";
39export { default as shuffleInPlace } from "./src/shuffle_in_place";
40export { default as sample } from "./src/sample";
41export { default as ckmeans } from "./src/ckmeans";
42export { default as uniqueCountSorted } from "./src/unique_count_sorted";
43export {
44 default as sumNthPowerDeviations
45} from "./src/sum_nth_power_deviations";
46export { default as equalIntervalBreaks } from "./src/equal_interval_breaks";
47
48// sample statistics
49export { default as sampleCovariance } from "./src/sample_covariance";
50export { default as sampleCorrelation } from "./src/sample_correlation";
51export { default as sampleVariance } from "./src/sample_variance";
52export {
53 default as sampleStandardDeviation
54} from "./src/sample_standard_deviation";
55export { default as sampleSkewness } from "./src/sample_skewness";
56export { default as sampleKurtosis } from "./src/sample_kurtosis";
57
58// combinatorics
59export { default as permutationsHeap } from "./src/permutations_heap";
60export { default as combinations } from "./src/combinations";
61export {
62 default as combinationsReplacement
63} from "./src/combinations_replacement";
64
65// measures of centrality
66export { default as addToMean } from "./src/add_to_mean";
67export { default as combineMeans } from "./src/combine_means";
68export { default as combineVariances } from "./src/combine_variances";
69export { default as geometricMean } from "./src/geometric_mean";
70export { default as harmonicMean } from "./src/harmonic_mean";
71export { default as average, default as mean } from "./src/mean";
72export { default as median } from "./src/median";
73export { default as medianSorted } from "./src/median_sorted";
74export { default as subtractFromMean } from "./src/subtract_from_mean";
75
76export {
77 default as rootMeanSquare,
78 default as rms
79} from "./src/root_mean_square";
80export { default as variance } from "./src/variance";
81export { default as tTest } from "./src/t_test";
82export { default as tTestTwoSample } from "./src/t_test_two_sample";
83// ss.jenks = require('./src/jenks');
84
85// Classifiers
86export {
87 default as BayesianClassifier,
88 default as bayesian
89} from "./src/bayesian_classifier";
90export {
91 default as PerceptronModel,
92 default as perceptron
93} from "./src/perceptron";
94
95// Distribution-related methods
96export { default as epsilon } from "./src/epsilon"; // We make ε available to the test suite.
97export { default as factorial } from "./src/factorial";
98export { default as gamma } from "./src/gamma";
99export { default as gammaln } from "./src/gammaln";
100export { default as bernoulliDistribution } from "./src/bernoulli_distribution";
101export { default as binomialDistribution } from "./src/binomial_distribution";
102export { default as poissonDistribution } from "./src/poisson_distribution";
103export {
104 default as chiSquaredDistributionTable
105} from "./src/chi_squared_distribution_table";
106export {
107 default as chiSquaredGoodnessOfFit
108} from "./src/chi_squared_goodness_of_fit";
109export {
110 default as kernelDensityEstimation,
111 default as kde
112} from "./src/kernel_density_estimation";
113
114// Normal distribution
115export { default as zScore } from "./src/z_score";
116export {
117 default as cumulativeStdNormalProbability
118} from "./src/cumulative_std_normal_probability";
119export { default as standardNormalTable } from "./src/standard_normal_table";
120export { default as errorFunction, default as erf } from "./src/error_function";
121export { default as inverseErrorFunction } from "./src/inverse_error_function";
122export { default as probit } from "./src/probit";
123
124// Non-parametric Methods
125export { default as permutationTest } from "./src/permutation_test";
126
127// Root-finding methods
128export { default as bisect } from "./src/bisect";
129
130// Utils
131export { default as quickselect } from "./src/quickselect";
132export { default as sign } from "./src/sign";
133export { default as numericSort } from "./src/numeric_sort";