@danielsimonjr/mathts-statistics 0.3.47 → 0.3.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +30 -1
- package/dist/index.d.ts.map +1 -0
- package/package.json +72 -72
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @danielsimonjr/mathts-statistics
|
|
3
|
+
*
|
|
4
|
+
* Standalone **statistics & probability** library for MathTS — descriptive
|
|
5
|
+
* statistics, probability distributions, hypothesis tests, and combinatorics,
|
|
6
|
+
* as a focused package. The implementations live in
|
|
7
|
+
* {@link @danielsimonjr/mathts-functions}; this is a curated entry point over
|
|
8
|
+
* the statistics/probability surface, not a copy.
|
|
9
|
+
*
|
|
10
|
+
* Every function here is externally-oracle-pinned (SciPy / NumPy / mpmath /
|
|
11
|
+
* closed form) in the functions package's test suite.
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
export { mean, median, mode, variance, std, quantileSeq, mad, corr, cumsum, sum, prod, min, max, rankdata, spearman, kendallTau, gmean, hmean, moment, skewness, kurtosis, iqr, sem, zscore, cov, corrcoef, } from '@danielsimonjr/mathts-functions';
|
|
16
|
+
export { parallelStatSum, parallelStatMean, parallelStatVariance, parallelStatStd, parallelStatMin, parallelStatMax, parallelStatMinMax, parallelStatMedian, parallelStatMode, parallelStatProd, parallelStatNorm, parallelStatDistance, parallelStatCorr, parallelStatMAD, parallelStatCumsum, parallelStatQuantile, parallelStatPercentile, parallelStatHistogram, quickSelect, medianSelect, minSelect, maxSelect, typedStatistics, } from '@danielsimonjr/mathts-functions';
|
|
17
|
+
export { normalDist, betaDist, binomialDist, chiSquaredDist, exponentialDist, fDist, gammaDist, logNormalDist, poissonDist, tDist, uniformDist, weibullDist, hypergeometricDist, negativeBinomialDist, DIST_WORKER_THRESHOLD, normalPDF, normalCDF, exponentialPDF, exponentialCDF, poissonPMF, binomialPMF, geometricPMF, bernoulliPMF, betaPDF, gammaPDF, studentTPDF, noncentralChi2PDF, entropy, jsDivergence, typedDistributions, normalQuantile, studentTCDF, studentTQuantile, chiSquaredCDF, chiSquaredQuantile, fCDF, fQuantile, gammaCDF, gammaQuantile, betaCDF, betaQuantile, cauchyPDF, cauchyCDF, cauchyQuantile, laplacePDF, laplaceCDF, laplaceQuantile, logisticPDF, logisticCDF, logisticQuantile, } from '@danielsimonjr/mathts-functions';
|
|
18
|
+
export type { Distribution, SampleNOptions } from '@danielsimonjr/mathts-functions';
|
|
19
|
+
export { studentTTest, studentTTestPaired, chiSquareTest, anova, kolmogorovSmirnovTest, kolmogorovSmirnov2Test, mannWhitneyTest, shapiroWilkTest, leveneTest, bartlettTest, proportionZTest, binomialTest, principalComponentAnalysis, fTest, jarqueBera, kruskalWallis, wilcoxon, fisherExact, studentizedRangeCDF, studentizedRangeQuantile, tukeyHSD, } from '@danielsimonjr/mathts-functions';
|
|
20
|
+
export { combinations, combinationsWithRep, permutations, multinomial, factorial, doubleFactorial, risingFactorial, fallingFactorial, subfactorial, bernoulli, gamma, lgamma, kldivergence, random, randomInt, pickRandom, seedProbabilityRng, typedProbability, } from '@danielsimonjr/mathts-functions';
|
|
21
|
+
export { linearRegression, polyFit, cummax, cummin, cumprod, cumtrapz, trapzF64, movingAverage, ewma, detrend, acf, logsumexp, softmax, kmeans, spectralClustering, beta, digamma, } from '@danielsimonjr/mathts-functions';
|
|
22
|
+
export { linregress, pearsonr, spearmanr, kendalltau, ptp, variation, trimmedMean, describe, histogram, } from '@danielsimonjr/mathts-functions';
|
|
23
|
+
export type { LinRegressResult, CorrelationTestResult, DescribeResult, HistogramResult, } from '@danielsimonjr/mathts-functions';
|
|
24
|
+
export { andersonDarlingTest, dagostinoTest, friedmanTest, anova2, multipleComparison, } from '@danielsimonjr/mathts-functions';
|
|
25
|
+
export type { NormalityTestResult, Anova2Effect, Anova2Result, } from '@danielsimonjr/mathts-functions';
|
|
26
|
+
export { paretoDist, rayleighDist, triangularDist, discreteUniformDist, gumbelDist, invGaussDist, multivariateNormal, } from '@danielsimonjr/mathts-functions';
|
|
27
|
+
export type { MultivariateDistribution } from '@danielsimonjr/mathts-functions';
|
|
28
|
+
export { meanCI, proportionCI, bootstrapCI, permutationTest, mahalanobis, hotellingT2, } from '@danielsimonjr/mathts-functions';
|
|
29
|
+
export type { ConfidenceInterval, BootstrapCIOptions, PermutationOptions, HotellingResult, } from '@danielsimonjr/mathts-functions';
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,OAAO,EAEL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,WAAW,EACX,GAAG,EACH,IAAI,EACJ,MAAM,EACN,GAAG,EACH,IAAI,EACJ,GAAG,EACH,GAAG,EAEH,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,KAAK,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,GAAG,EACH,MAAM,EACN,GAAG,EACH,QAAQ,GACT,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,eAAe,GAChB,MAAM,iCAAiC,CAAC;AAMzC,OAAO,EAEL,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,eAAe,EAC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EACP,QAAQ,EACR,QAAQ,EAER,aAAa,EACb,IAAI,EACJ,OAAO,EACP,GAAG,EAEH,SAAS,EACT,OAAO,EAEP,MAAM,EACN,kBAAkB,EAElB,IAAI,EACJ,OAAO,GACR,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,UAAU,EACV,GAAG,EACH,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,eAAe,GAChB,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,mBAAmB,EACnB,YAAY,EACZ,YAAY,GACb,MAAM,iCAAiC,CAAC;AAKzC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAKhF,OAAO,EACL,MAAM,EACN,YAAY,EACZ,WAAW,EACX,eAAe,EACf,WAAW,EACX,WAAW,GACZ,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,GAChB,MAAM,iCAAiC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@danielsimonjr/mathts-statistics",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Statistics & probability for MathTS
|
|
5
|
-
"author": "Daniel Simon Jr.",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "./dist/index.js",
|
|
9
|
-
"module": "./dist/index.js",
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist",
|
|
19
|
-
"README.md"
|
|
20
|
-
],
|
|
21
|
-
"scripts": {
|
|
22
|
-
"build": "tsup src/index.ts --format esm --dts
|
|
23
|
-
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
24
|
-
"test": "
|
|
25
|
-
"test:watch": "vitest",
|
|
26
|
-
"test:coverage": "
|
|
27
|
-
"typecheck": "tsc --noEmit",
|
|
28
|
-
"lint": "
|
|
29
|
-
"lint:fix": "
|
|
30
|
-
"clean": "rm -rf dist",
|
|
31
|
-
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
|
-
},
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@danielsimonjr/mathts-functions": "^0.
|
|
35
|
-
"typed-function": "^4.0.0"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@types/node": "^
|
|
39
|
-
"tsup": "^8.0.0",
|
|
40
|
-
"typescript": "^
|
|
41
|
-
"vitest": "^
|
|
42
|
-
},
|
|
43
|
-
"publishConfig": {
|
|
44
|
-
"access": "public"
|
|
45
|
-
},
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/danielsimonjr/MathTS.git",
|
|
49
|
-
"directory": "statistics"
|
|
50
|
-
},
|
|
51
|
-
"keywords": [
|
|
52
|
-
"math",
|
|
53
|
-
"typescript",
|
|
54
|
-
"statistics",
|
|
55
|
-
"probability",
|
|
56
|
-
"distribution",
|
|
57
|
-
"hypothesis-test",
|
|
58
|
-
"anova",
|
|
59
|
-
"t-test",
|
|
60
|
-
"ks-test",
|
|
61
|
-
"levene",
|
|
62
|
-
"bartlett",
|
|
63
|
-
"kendall",
|
|
64
|
-
"spearman",
|
|
65
|
-
"normal",
|
|
66
|
-
"gamma",
|
|
67
|
-
"beta",
|
|
68
|
-
"binomial",
|
|
69
|
-
"poisson",
|
|
70
|
-
"scipy"
|
|
71
|
-
]
|
|
72
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@danielsimonjr/mathts-statistics",
|
|
3
|
+
"version": "0.3.49",
|
|
4
|
+
"description": "Statistics & probability for MathTS \u2014 descriptive stats, distributions, hypothesis tests, and combinatorics, every function externally oracle-pinned (SciPy/NumPy/closed-form)",
|
|
5
|
+
"author": "Daniel Simon Jr.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
|
|
23
|
+
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
24
|
+
"test": "bun test",
|
|
25
|
+
"test:watch": "vitest",
|
|
26
|
+
"test:coverage": "bun test --coverage",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"lint": "oxlint src",
|
|
29
|
+
"lint:fix": "oxlint src --fix",
|
|
30
|
+
"clean": "rm -rf dist",
|
|
31
|
+
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@danielsimonjr/mathts-functions": "^0.64.3",
|
|
35
|
+
"typed-function": "^4.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^26.4.0",
|
|
39
|
+
"tsup": "^8.0.0",
|
|
40
|
+
"typescript": "^7.0.2",
|
|
41
|
+
"vitest": "^5.0.0"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/danielsimonjr/MathTS.git",
|
|
49
|
+
"directory": "statistics"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"math",
|
|
53
|
+
"typescript",
|
|
54
|
+
"statistics",
|
|
55
|
+
"probability",
|
|
56
|
+
"distribution",
|
|
57
|
+
"hypothesis-test",
|
|
58
|
+
"anova",
|
|
59
|
+
"t-test",
|
|
60
|
+
"ks-test",
|
|
61
|
+
"levene",
|
|
62
|
+
"bartlett",
|
|
63
|
+
"kendall",
|
|
64
|
+
"spearman",
|
|
65
|
+
"normal",
|
|
66
|
+
"gamma",
|
|
67
|
+
"beta",
|
|
68
|
+
"binomial",
|
|
69
|
+
"poisson",
|
|
70
|
+
"scipy"
|
|
71
|
+
]
|
|
72
|
+
}
|