forked from simple-statistics/simple-statistics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
142 lines (128 loc) · 6.55 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// # simple-statistics
//
// A simple, literate statistics system.
// Linear Regression
export { default as linearRegression } from "./src/linear_regression.js";
export { default as linearRegressionLine } from "./src/linear_regression_line.js";
export { default as standardDeviation } from "./src/standard_deviation.js";
export { default as rSquared } from "./src/r_squared.js";
export { default as mode } from "./src/mode.js";
export { default as modeFast } from "./src/mode_fast.js";
export { default as modeSorted } from "./src/mode_sorted.js";
export { default as min } from "./src/min.js";
export { default as max } from "./src/max.js";
export { default as extent } from "./src/extent.js";
export { default as minSorted } from "./src/min_sorted.js";
export { default as maxSorted } from "./src/max_sorted.js";
export { default as extentSorted } from "./src/extent_sorted.js";
export { default as sum } from "./src/sum.js";
export { default as sumSimple } from "./src/sum_simple.js";
export { default as product } from "./src/product.js";
export { default as quantile } from "./src/quantile.js";
export { default as quantileSorted } from "./src/quantile_sorted.js";
export { default as quantileRank } from "./src/quantile_rank.js";
export { default as quantileRankSorted } from "./src/quantile_rank_sorted.js";
export {
default as interquartileRange,
default as iqr
} from "./src/interquartile_range.js";
export {
default as medianAbsoluteDeviation,
default as mad
} from "./src/median_absolute_deviation.js";
export { default as chunk } from "./src/chunk.js";
export { default as sampleWithReplacement } from "./src/sample_with_replacement.js";
export { default as shuffle } from "./src/shuffle.js";
export { default as shuffleInPlace } from "./src/shuffle_in_place.js";
export { default as sample } from "./src/sample.js";
export { default as ckmeans } from "./src/ckmeans.js";
export { default as jenks } from "./src/jenks.js";
export { default as uniqueCountSorted } from "./src/unique_count_sorted.js";
export { default as sumNthPowerDeviations } from "./src/sum_nth_power_deviations.js";
export { default as equalIntervalBreaks } from "./src/equal_interval_breaks.js";
// sample statistics
export { default as sampleCovariance } from "./src/sample_covariance.js";
export { default as sampleCorrelation } from "./src/sample_correlation.js";
export { default as sampleRankCorrelation } from "./src/sample_rank_correlation.js";
export { default as sampleVariance } from "./src/sample_variance.js";
export { default as sampleStandardDeviation } from "./src/sample_standard_deviation.js";
export { default as sampleSkewness } from "./src/sample_skewness.js";
export { default as sampleKurtosis } from "./src/sample_kurtosis.js";
// combinatorics
export { default as permutationsHeap } from "./src/permutations_heap.js";
export { default as combinations } from "./src/combinations.js";
export { default as combinationsReplacement } from "./src/combinations_replacement.js";
// measures of centrality
export { default as addToMean } from "./src/add_to_mean.js";
export { default as combineMeans } from "./src/combine_means.js";
export { default as combineVariances } from "./src/combine_variances.js";
export { default as geometricMean } from "./src/geometric_mean.js";
export { default as logAverage } from "./src/log_average.js";
export { default as harmonicMean } from "./src/harmonic_mean.js";
export { default as average, default as mean } from "./src/mean.js";
export {
default as averageSimple,
default as meanSimple
} from "./src/mean_simple.js";
export { default as median } from "./src/median.js";
export { default as medianSorted } from "./src/median_sorted.js";
export { default as subtractFromMean } from "./src/subtract_from_mean.js";
export {
default as rootMeanSquare,
default as rms
} from "./src/root_mean_square.js";
export { default as variance } from "./src/variance.js";
export { default as coefficientOfVariation } from "./src/coefficient_of_variation.js";
export { default as tTest } from "./src/t_test.js";
export { default as tTestTwoSample } from "./src/t_test_two_sample.js";
export { default as wilcoxonRankSum } from "./src/wilcoxon_rank_sum.js";
// ss.jenks = require('./src/jenks');
// Classifiers
export {
default as BayesianClassifier,
default as bayesian
} from "./src/bayesian_classifier.js";
export {
default as PerceptronModel,
default as perceptron
} from "./src/perceptron.js";
// Distribution-related methods
export { default as epsilon } from "./src/epsilon.js"; // We make ε available to the test suite.
export { default as factorial } from "./src/factorial.js";
export { default as gamma } from "./src/gamma.js";
export { default as gammaln } from "./src/gammaln.js";
export { default as bernoulliDistribution } from "./src/bernoulli_distribution.js";
export { default as binomialDistribution } from "./src/binomial_distribution.js";
export { default as poissonDistribution } from "./src/poisson_distribution.js";
export { default as chiSquaredDistributionTable } from "./src/chi_squared_distribution_table.js";
export { default as chiSquaredGoodnessOfFit } from "./src/chi_squared_goodness_of_fit.js";
export {
default as kernelDensityEstimation,
default as kde
} from "./src/kernel_density_estimation.js";
// Normal distribution
export { default as zScore } from "./src/z_score.js";
export { default as cumulativeStdNormalProbability } from "./src/cumulative_std_normal_probability.js";
export { default as cumulativeStdLogisticProbability } from "./src/cumulative_std_logistic_probability.js";
export { default as standardNormalTable } from "./src/standard_normal_table.js";
export {
default as errorFunction,
default as erf
} from "./src/error_function.js";
export { default as inverseErrorFunction } from "./src/inverse_error_function.js";
export { default as probit } from "./src/probit.js";
export { default as logit } from "./src/logit.js";
// Non-parametric Methods
export { default as permutationTest } from "./src/permutation_test.js";
// Root-finding methods
export { default as bisect } from "./src/bisect.js";
// Clustering methods and metrics
export { default as kMeansCluster } from "./src/k_means_cluster.js";
export { default as silhouette } from "./src/silhouette.js";
export { default as silhouetteMetric } from "./src/silhouette_metric.js";
// Utils
export { default as quickselect } from "./src/quickselect.js";
export { default as sign } from "./src/sign.js";
export { default as numericSort } from "./src/numeric_sort.js";
export { default as relativeError } from "./src/relative_error.js";
export { default as approxEqual } from "./src/approx_equal.js";