@danielsimonjr/mathts-functions 0.64.0 → 0.64.2
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/algebra/rationalize.d.ts.map +1 -1
- package/dist/algebra/simplify/wildcards.d.ts +10 -0
- package/dist/algebra/simplify/wildcards.d.ts.map +1 -1
- package/dist/algebra/simplifyCore.d.ts.map +1 -1
- package/dist/algebra/solver/lsolveAll.d.ts +1 -0
- package/dist/algebra/solver/lsolveAll.d.ts.map +1 -1
- package/dist/algebra/solver/usolveAll.d.ts +1 -0
- package/dist/algebra/solver/usolveAll.d.ts.map +1 -1
- package/dist/algebra/solver/utils/solveValidation.d.ts +4 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts.map +1 -1
- package/dist/algebra/sparse/csAmd.d.ts +4 -0
- package/dist/algebra/sparse/csAmd.d.ts.map +1 -1
- package/dist/algebra/sparse/csChol.d.ts +12 -0
- package/dist/algebra/sparse/csChol.d.ts.map +1 -1
- package/dist/algebra/sparse/csCounts.d.ts +4 -0
- package/dist/algebra/sparse/csCounts.d.ts.map +1 -1
- package/dist/algebra/sparse/csDfs.d.ts +0 -1
- package/dist/algebra/sparse/csDfs.d.ts.map +1 -1
- package/dist/algebra/sparse/csLu.d.ts +9 -0
- package/dist/algebra/sparse/csLu.d.ts.map +1 -1
- package/dist/algebra/sparse/csSpsolve.d.ts +4 -0
- package/dist/algebra/sparse/csSpsolve.d.ts.map +1 -1
- package/dist/algebra/sparse/csSqr.d.ts +5 -0
- package/dist/algebra/sparse/csSqr.d.ts.map +1 -1
- package/dist/algebra/sparse/csSymperm.d.ts +4 -0
- package/dist/algebra/sparse/csSymperm.d.ts.map +1 -1
- package/dist/arithmetic/log.d.ts.map +1 -1
- package/dist/arithmetic/log10.d.ts.map +1 -1
- package/dist/arithmetic/nthRoot.d.ts.map +1 -1
- package/dist/arithmetic/utils/nodeOperations.d.ts +1 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts.map +1 -1
- package/dist/bitwise/useMatrixForArrayScalar.d.ts.map +1 -1
- package/dist/cas/rat.d.ts +17 -0
- package/dist/cas/rat.d.ts.map +1 -1
- package/dist/clustering-extra.d.ts +4 -0
- package/dist/clustering-extra.d.ts.map +1 -1
- package/dist/core/function/config.d.ts +10 -2
- package/dist/core/function/config.d.ts.map +1 -1
- package/dist/core/function/import.d.ts +5 -0
- package/dist/core/function/import.d.ts.map +1 -1
- package/dist/descriptive-stats.d.ts +16 -0
- package/dist/descriptive-stats.d.ts.map +1 -1
- package/dist/distribution-functions.d.ts.map +1 -1
- package/dist/error/ArgumentsError.d.ts.map +1 -1
- package/dist/expression/operators.d.ts +1 -1
- package/dist/factories/index.d.ts +4 -4
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/matrix-bridge.d.ts +7 -0
- package/dist/factories/matrix-bridge.d.ts.map +1 -1
- package/dist/gpu/elementwise-gpu.d.ts +15 -15
- package/dist/gpu/elementwise-gpu.d.ts.map +1 -1
- package/dist/grad-forward.d.ts +1 -0
- package/dist/grad-forward.d.ts.map +1 -1
- package/dist/hypothesis-extra.d.ts +23 -0
- package/dist/hypothesis-extra.d.ts.map +1 -1
- package/dist/index.js +78 -37
- package/dist/matrix/eigs/complexEigs.d.ts +4 -0
- package/dist/matrix/eigs/complexEigs.d.ts.map +1 -1
- package/dist/matrix/eigs/realSymmetric.d.ts +5 -1
- package/dist/matrix/eigs/realSymmetric.d.ts.map +1 -1
- package/dist/matrix/sqrtm.d.ts +1 -1
- package/dist/matrix/utils/zerosAndOnes.d.ts +13 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts.map +1 -1
- package/dist/ml/glm.d.ts +2 -0
- package/dist/ml/glm.d.ts.map +1 -1
- package/dist/ml/kde.d.ts +1 -0
- package/dist/ml/kde.d.ts.map +1 -1
- package/dist/ml/logistic-regression.d.ts +2 -0
- package/dist/ml/logistic-regression.d.ts.map +1 -1
- package/dist/ml/ols.d.ts +2 -0
- package/dist/ml/ols.d.ts.map +1 -1
- package/dist/ml/regularized-regression.d.ts +6 -0
- package/dist/ml/regularized-regression.d.ts.map +1 -1
- package/dist/numeric/interval.d.ts.map +1 -1
- package/dist/numeric/numeric-jacobian.d.ts +1 -0
- package/dist/numeric/numeric-jacobian.d.ts.map +1 -1
- package/dist/numeric-extra.d.ts.map +1 -1
- package/dist/optimization-extra.d.ts +8 -0
- package/dist/optimization-extra.d.ts.map +1 -1
- package/dist/plain/number/arithmetic.d.ts +41 -24
- package/dist/plain/number/arithmetic.d.ts.map +1 -1
- package/dist/plain/number/bitwise.d.ts +45 -7
- package/dist/plain/number/bitwise.d.ts.map +1 -1
- package/dist/plain/number/combinations.d.ts +8 -0
- package/dist/plain/number/combinations.d.ts.map +1 -1
- package/dist/plain/number/logical.d.ts +11 -4
- package/dist/plain/number/logical.d.ts.map +1 -1
- package/dist/plain/number/probability.d.ts +14 -0
- package/dist/plain/number/probability.d.ts.map +1 -1
- package/dist/plain/number/relational.d.ts +21 -7
- package/dist/plain/number/relational.d.ts.map +1 -1
- package/dist/plain/number/trigonometry.d.ts +61 -25
- package/dist/plain/number/trigonometry.d.ts.map +1 -1
- package/dist/plain/number/utils.d.ts +12 -5
- package/dist/plain/number/utils.d.ts.map +1 -1
- package/dist/probability/util/seededRNG.d.ts +6 -0
- package/dist/probability/util/seededRNG.d.ts.map +1 -1
- package/dist/regression-extra.d.ts +1 -0
- package/dist/regression-extra.d.ts.map +1 -1
- package/dist/signal/iir-design.d.ts.map +1 -1
- package/dist/signal/remez-exchange.d.ts +4 -0
- package/dist/signal/remez-exchange.d.ts.map +1 -1
- package/dist/signal-filter-extra.d.ts +1 -0
- package/dist/signal-filter-extra.d.ts.map +1 -1
- package/dist/special/hypergeometric.d.ts +1 -1
- package/dist/special/niche.d.ts +2 -2
- package/dist/special/wave-functions.d.ts +4 -4
- package/dist/special/zeta.d.ts.map +1 -1
- package/dist/stats/power-analysis.d.ts +1 -0
- package/dist/stats/power-analysis.d.ts.map +1 -1
- package/dist/type/local/Decimal.d.ts +1 -0
- package/dist/type/local/Decimal.d.ts.map +1 -1
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts +28 -38
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts.map +1 -1
- package/dist/type/matrix/MatrixIndex.d.ts.map +1 -1
- package/dist/type/matrix/Spa.d.ts +1 -1
- package/dist/typed/cas.d.ts.map +1 -1
- package/dist/typed/geometry.d.ts +4 -4
- package/dist/typed/hypothesis.d.ts +26 -0
- package/dist/typed/hypothesis.d.ts.map +1 -1
- package/dist/typed/index.d.ts +175 -175
- package/dist/typed/integration.d.ts +1 -1
- package/dist/typed/numeric.d.ts +4 -4
- package/dist/typed/numeric.d.ts.map +1 -1
- package/dist/typed/polynomial-ideal.d.ts +10 -0
- package/dist/typed/polynomial-ideal.d.ts.map +1 -1
- package/dist/typed/signal.d.ts +9 -9
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/bigint.d.ts.map +1 -1
- package/dist/utils/bignumber/bitwise.d.ts +21 -0
- package/dist/utils/bignumber/bitwise.d.ts.map +1 -1
- package/dist/utils/bignumber/nearlyEqual.d.ts +16 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts.map +1 -1
- package/dist/utils/emitter.d.ts +1 -0
- package/dist/utils/emitter.d.ts.map +1 -1
- package/dist/utils/factory.d.ts +2 -1
- package/dist/utils/factory.d.ts.map +1 -1
- package/dist/utils/is.d.ts +140 -0
- package/dist/utils/is.d.ts.map +1 -1
- package/dist/utils/noop.d.ts +3 -0
- package/dist/utils/noop.d.ts.map +1 -1
- package/dist/utils/product.d.ts +4 -1
- package/dist/utils/product.d.ts.map +1 -1
- package/dist/wasm/WasmLoader.d.ts +6 -0
- package/dist/wasm/WasmLoader.d.ts.map +1 -1
- package/dist/wasm/elementwise/wasm-bridge.d.ts +2 -1
- package/dist/wasm/elementwise/wasm-bridge.d.ts.map +1 -1
- package/dist/wasm/mathts-as.wasm +0 -0
- package/dist/wasm/special/scalars.d.ts +22 -0
- package/dist/wasm/special/scalars.d.ts.map +1 -1
- package/dist/wasm/special/wasm-bridge.d.ts +80 -0
- package/dist/wasm/special/wasm-bridge.d.ts.map +1 -1
- package/dist/wasm/wasm-manifest.json +1 -1
- package/package.json +11 -11
- package/types/modules.d.ts +19 -19
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** Options for `logisticRegression`. */
|
|
1
2
|
export interface LogisticRegressionOptions {
|
|
2
3
|
/** Prepend a column of ones (default true). */
|
|
3
4
|
intercept?: boolean;
|
|
@@ -6,6 +7,7 @@ export interface LogisticRegressionOptions {
|
|
|
6
7
|
/** Maximum IRLS iterations (default 100). */
|
|
7
8
|
maxIter?: number;
|
|
8
9
|
}
|
|
10
|
+
/** Result of `logisticRegression`. */
|
|
9
11
|
export interface LogisticRegressionResult {
|
|
10
12
|
/** Fitted coefficients for the original predictors (excludes the intercept). */
|
|
11
13
|
coefficients: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logistic-regression.d.ts","sourceRoot":"","sources":["../../src/ml/logistic-regression.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,yBAAyB;IACxC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,gFAAgF;IAChF,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1C,yDAAyD;IACzD,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;CACtC;AAkBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,IAAI,CAAC,EAAE,yBAAyB,GAC/B,wBAAwB,CAiG1B"}
|
|
1
|
+
{"version":3,"file":"logistic-regression.d.ts","sourceRoot":"","sources":["../../src/ml/logistic-regression.ts"],"names":[],"mappings":"AASA,wCAAwC;AACxC,MAAM,WAAW,yBAAyB;IACxC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,sCAAsC;AACtC,MAAM,WAAW,wBAAwB;IACvC,gFAAgF;IAChF,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1C,yDAAyD;IACzD,OAAO,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;CACtC;AAkBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,IAAI,CAAC,EAAE,yBAAyB,GAC/B,wBAAwB,CAiG1B"}
|
package/dist/ml/ols.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
/** Options for `ols`. */
|
|
1
2
|
export interface OlsOptions {
|
|
2
3
|
/** Prepend a column of ones (default true). */
|
|
3
4
|
intercept?: boolean;
|
|
4
5
|
}
|
|
6
|
+
/** Result of `ols`: the coefficients and their inference statistics. */
|
|
5
7
|
export interface OlsResult {
|
|
6
8
|
/** Fitted coefficients (intercept first, if included). */
|
|
7
9
|
coefficients: number[];
|
package/dist/ml/ols.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ols.d.ts","sourceRoot":"","sources":["../../src/ml/ols.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,0DAA0D;IAC1D,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,8DAA8D;IAC9D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,4DAA4D;IAC5D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAqED;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAmC5E"}
|
|
1
|
+
{"version":3,"file":"ols.d.ts","sourceRoot":"","sources":["../../src/ml/ols.ts"],"names":[],"mappings":"AAUA,yBAAyB;AACzB,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wEAAwE;AACxE,MAAM,WAAW,SAAS;IACxB,0DAA0D;IAC1D,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,8DAA8D;IAC9D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,4DAA4D;IAC5D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAqED;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAmC5E"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
/** Options for `ridge`. */
|
|
1
2
|
export interface RidgeOptions {
|
|
2
3
|
/** Center X/y and fit an unpenalized intercept (default true). */
|
|
3
4
|
intercept?: boolean;
|
|
4
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Options for `lasso` and `elasticNet`, which add an iteration limit and a tolerance
|
|
8
|
+
* to `RidgeOptions`.
|
|
9
|
+
*/
|
|
5
10
|
export interface CoordinateDescentOptions extends RidgeOptions {
|
|
6
11
|
/** Maximum coordinate-descent sweeps (default 1000). */
|
|
7
12
|
maxIter?: number;
|
|
8
13
|
/** Convergence tolerance on the max coefficient change per sweep (default 1e-7). */
|
|
9
14
|
tol?: number;
|
|
10
15
|
}
|
|
16
|
+
/** Result of a regularized regression: the coefficients and the intercept. */
|
|
11
17
|
export interface RegularizedRegressionResult {
|
|
12
18
|
/** Fitted coefficients, one per predictor column (intercept excluded). */
|
|
13
19
|
coefficients: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regularized-regression.d.ts","sourceRoot":"","sources":["../../src/ml/regularized-regression.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC1C,0EAA0E;IAC1E,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;CACnB;AAqDD;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,YAAY,GAClB,2BAA2B,CAwB7B;AAyDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,wBAAwB,GAC9B,2BAA2B,CAc7B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CACxB,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,wBAAwB,GAC9B,2BAA2B,CAiB7B"}
|
|
1
|
+
{"version":3,"file":"regularized-regression.d.ts","sourceRoot":"","sources":["../../src/ml/regularized-regression.ts"],"names":[],"mappings":"AAgBA,2BAA2B;AAC3B,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,8EAA8E;AAC9E,MAAM,WAAW,2BAA2B;IAC1C,0EAA0E;IAC1E,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;CACnB;AAqDD;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,YAAY,GAClB,2BAA2B,CAwB7B;AAyDD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CACnB,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,wBAAwB,GAC9B,2BAA2B,CAc7B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CACxB,CAAC,EAAE,MAAM,EAAE,EAAE,EACb,CAAC,EAAE,MAAM,EAAE,EACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,wBAAwB,GAC9B,2BAA2B,CAiB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interval.d.ts","sourceRoot":"","sources":["../../src/numeric/interval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAYH;;;;;GAKG;AACH,qBAAa,QAAQ;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"interval.d.ts","sourceRoot":"","sources":["../../src/numeric/interval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAYH;;;;;GAKG;AACH,qBAAa,QAAQ;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAMjC;IAED,2DAA2D;IAC3D,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAEzB;IAED,2DAA2D;IAC3D,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAEzB;IAED;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAMzB;IAED;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,CASzB;IAED,+CAA+C;IAC/C,GAAG,IAAI,QAAQ,CAEd;IAED,iBAAiB;IACjB,KAAK,IAAI,MAAM,CAEd;IAED,uBAAuB;IACvB,GAAG,IAAI,MAAM,CAEZ;IAED,2EAA2E;IAC3E,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAE3B;IAED;;;OAGG;IACH,IAAI,IAAI,QAAQ,CAKf;IAED,wDAAwD;IACxD,GAAG,IAAI,QAAQ,CAEd;IAED;;;OAGG;IACH,GAAG,IAAI,QAAQ,CAKd;IAED;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,QAAQ,CA0BvB;CACF;AAED,8DAA8D;AAC9D,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,CAEzD"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/** A vector field ℝⁿ → ℝᵐ. */
|
|
9
9
|
export type VectorField = (x: number[]) => number[];
|
|
10
|
+
/** Options for `numericJacobian`. */
|
|
10
11
|
export interface NumericJacobianOptions {
|
|
11
12
|
/** Absolute step override. Default: per-coordinate relative step (see below). */
|
|
12
13
|
h?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numeric-jacobian.d.ts","sourceRoot":"","sources":["../../src/numeric/numeric-jacobian.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8BAA8B;AAC9B,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;AAEpD,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,WAAW,EACd,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE,sBAA2B,GAChC,MAAM,EAAE,EAAE,CA0BZ"}
|
|
1
|
+
{"version":3,"file":"numeric-jacobian.d.ts","sourceRoot":"","sources":["../../src/numeric/numeric-jacobian.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8BAA8B;AAC9B,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;AAEpD,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,WAAW,EACd,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE,sBAA2B,GAChC,MAAM,EAAE,EAAE,CA0BZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numeric-extra.d.ts","sourceRoot":"","sources":["../src/numeric-extra.ts"],"names":[],"mappings":"AAUA,KAAK,GAAG,GAAG,SAAS,MAAM,EAAE,GAAG,YAAY,CAAC;AAe5C,oEAAoE;AACpE,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;AACjE,wBAAgB,KAAK,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"numeric-extra.d.ts","sourceRoot":"","sources":["../src/numeric-extra.ts"],"names":[],"mappings":"AAUA,KAAK,GAAG,GAAG,SAAS,MAAM,EAAE,GAAG,YAAY,CAAC;AAe5C,oEAAoE;AACpE,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;AACjE,wBAAgB,KAAK,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;AAU9E,gFAAgF;AAChF,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;AAC3C,wBAAgB,OAAO,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAUxD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAQxC;AAED,+EAA+E;AAC/E,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CAOxC;AAED,+EAA+E;AAC/E,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CASxC;AAED,wCAAwC;AACxC,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CASvC;AAED,wCAAwC;AACxC,wBAAgB,MAAM,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CASvC;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,EAAE,CAsB3D"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of `nelderMead` and `gradientDescent`: the best point `x`,
|
|
3
|
+
* its value `fx`, the iteration count, and a convergence flag.
|
|
4
|
+
*/
|
|
1
5
|
export interface OptimizeResult {
|
|
2
6
|
x: number[];
|
|
3
7
|
fx: number;
|
|
@@ -23,6 +27,10 @@ export declare function gradientDescent(f: (x: number[]) => number, x0: readonly
|
|
|
23
27
|
maxIter?: number;
|
|
24
28
|
tol?: number;
|
|
25
29
|
}): OptimizeResult;
|
|
30
|
+
/**
|
|
31
|
+
* Result of `levenbergMarquardt`: the solution `x`, the residual norm, the iteration
|
|
32
|
+
* count, and a convergence flag.
|
|
33
|
+
*/
|
|
26
34
|
export interface LMResult {
|
|
27
35
|
x: number[];
|
|
28
36
|
residualNorm: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimization-extra.d.ts","sourceRoot":"","sources":["../src/optimization-extra.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAC1B,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAC3D,cAAc,CA8DhB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAC1B,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAC7F,cAAc,CA6BhB;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,EACnC,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAC5C,QAAQ,CAwEV"}
|
|
1
|
+
{"version":3,"file":"optimization-extra.d.ts","sourceRoot":"","sources":["../src/optimization-extra.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAC1B,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAC3D,cAAc,CA8DhB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAC1B,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAC7F,cAAc,CA6BhB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,EACnC,EAAE,EAAE,SAAS,MAAM,EAAE,EACrB,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAC5C,QAAQ,CAwEV"}
|
|
@@ -1,46 +1,59 @@
|
|
|
1
|
+
declare const n1 = "number";
|
|
2
|
+
declare const n2 = "number, number";
|
|
3
|
+
/** Return the absolute value of `a`. */
|
|
1
4
|
export declare function absNumber(a: number): number;
|
|
2
5
|
export declare namespace absNumber {
|
|
3
|
-
|
|
6
|
+
export { n1 as signature };
|
|
4
7
|
}
|
|
8
|
+
/** Return the sum `a + b`. */
|
|
5
9
|
export declare function addNumber(a: number, b: number): number;
|
|
6
10
|
export declare namespace addNumber {
|
|
7
|
-
|
|
11
|
+
export { n2 as signature };
|
|
8
12
|
}
|
|
13
|
+
/** Return the difference `a - b`. */
|
|
9
14
|
export declare function subtractNumber(a: number, b: number): number;
|
|
10
15
|
export declare namespace subtractNumber {
|
|
11
|
-
|
|
16
|
+
export { n2 as signature };
|
|
12
17
|
}
|
|
18
|
+
/** Return the product `a * b`. */
|
|
13
19
|
export declare function multiplyNumber(a: number, b: number): number;
|
|
14
20
|
export declare namespace multiplyNumber {
|
|
15
|
-
|
|
21
|
+
export { n2 as signature };
|
|
16
22
|
}
|
|
23
|
+
/** Return the quotient `a / b`. Division by 0 gives an infinity or NaN, as in JavaScript. */
|
|
17
24
|
export declare function divideNumber(a: number, b: number): number;
|
|
18
25
|
export declare namespace divideNumber {
|
|
19
|
-
|
|
26
|
+
export { n2 as signature };
|
|
20
27
|
}
|
|
28
|
+
/** Return the negation `-x`. */
|
|
21
29
|
export declare function unaryMinusNumber(x: number): number;
|
|
22
30
|
export declare namespace unaryMinusNumber {
|
|
23
|
-
|
|
31
|
+
export { n1 as signature };
|
|
24
32
|
}
|
|
33
|
+
/** Return `x` unchanged. */
|
|
25
34
|
export declare function unaryPlusNumber(x: number): number;
|
|
26
35
|
export declare namespace unaryPlusNumber {
|
|
27
|
-
|
|
36
|
+
export { n1 as signature };
|
|
28
37
|
}
|
|
38
|
+
/** Return the real cube root of `x`. */
|
|
29
39
|
export declare function cbrtNumber(x: number): number;
|
|
30
40
|
export declare namespace cbrtNumber {
|
|
31
|
-
|
|
41
|
+
export { n1 as signature };
|
|
32
42
|
}
|
|
43
|
+
/** Return the cube `x * x * x`. */
|
|
33
44
|
export declare function cubeNumber(x: number): number;
|
|
34
45
|
export declare namespace cubeNumber {
|
|
35
|
-
|
|
46
|
+
export { n1 as signature };
|
|
36
47
|
}
|
|
48
|
+
/** Return `e` to the power `x` (`Math.exp`). */
|
|
37
49
|
export declare function expNumber(x: number): number;
|
|
38
50
|
export declare namespace expNumber {
|
|
39
|
-
|
|
51
|
+
export { n1 as signature };
|
|
40
52
|
}
|
|
53
|
+
/** Return `exp(x) - 1`. */
|
|
41
54
|
export declare function expm1Number(x: number): number;
|
|
42
55
|
export declare namespace expm1Number {
|
|
43
|
-
|
|
56
|
+
export { n1 as signature };
|
|
44
57
|
}
|
|
45
58
|
/**
|
|
46
59
|
* Calculate gcd for numbers
|
|
@@ -50,7 +63,7 @@ export declare namespace expm1Number {
|
|
|
50
63
|
*/
|
|
51
64
|
export declare function gcdNumber(a: number, b: number): number;
|
|
52
65
|
export declare namespace gcdNumber {
|
|
53
|
-
|
|
66
|
+
export { n2 as signature };
|
|
54
67
|
}
|
|
55
68
|
/**
|
|
56
69
|
* Calculate lcm for two numbers
|
|
@@ -60,12 +73,12 @@ export declare namespace gcdNumber {
|
|
|
60
73
|
*/
|
|
61
74
|
export declare function lcmNumber(a: number, b: number): number;
|
|
62
75
|
export declare namespace lcmNumber {
|
|
63
|
-
|
|
76
|
+
export { n2 as signature };
|
|
64
77
|
}
|
|
65
78
|
/**
|
|
66
79
|
* Calculate the logarithm of a value, optionally to a given base.
|
|
67
80
|
* @param x - The value
|
|
68
|
-
* @param
|
|
81
|
+
* @param y - Optional base
|
|
69
82
|
* @returns Logarithm
|
|
70
83
|
*/
|
|
71
84
|
export declare function logNumber(x: number, y?: number): number;
|
|
@@ -76,7 +89,7 @@ export declare function logNumber(x: number, y?: number): number;
|
|
|
76
89
|
*/
|
|
77
90
|
export declare function log10Number(x: number): number;
|
|
78
91
|
export declare namespace log10Number {
|
|
79
|
-
|
|
92
|
+
export { n1 as signature };
|
|
80
93
|
}
|
|
81
94
|
/**
|
|
82
95
|
* Calculate the 2-base logarithm of a number
|
|
@@ -85,7 +98,7 @@ export declare namespace log10Number {
|
|
|
85
98
|
*/
|
|
86
99
|
export declare function log2Number(x: number): number;
|
|
87
100
|
export declare namespace log2Number {
|
|
88
|
-
|
|
101
|
+
export { n1 as signature };
|
|
89
102
|
}
|
|
90
103
|
/**
|
|
91
104
|
* Calculate the natural logarithm of a `number+1`
|
|
@@ -94,7 +107,7 @@ export declare namespace log2Number {
|
|
|
94
107
|
*/
|
|
95
108
|
export declare function log1pNumber(x: number): number;
|
|
96
109
|
export declare namespace log1pNumber {
|
|
97
|
-
|
|
110
|
+
export { n1 as signature };
|
|
98
111
|
}
|
|
99
112
|
/**
|
|
100
113
|
* Calculate the modulus of two numbers
|
|
@@ -105,7 +118,7 @@ export declare namespace log1pNumber {
|
|
|
105
118
|
*/
|
|
106
119
|
export declare function modNumber(x: number, y: number): number;
|
|
107
120
|
export declare namespace modNumber {
|
|
108
|
-
|
|
121
|
+
export { n2 as signature };
|
|
109
122
|
}
|
|
110
123
|
/**
|
|
111
124
|
* Calculate the nth root of a, solve x^root == a
|
|
@@ -115,17 +128,20 @@ export declare namespace modNumber {
|
|
|
115
128
|
* @private
|
|
116
129
|
*/
|
|
117
130
|
export declare function nthRootNumber(a: number, root?: number): number;
|
|
131
|
+
/** Return the sign of `x` (`Math.sign`): -1, 0 or 1. NaN gives NaN. */
|
|
118
132
|
export declare function signNumber(x: number): number;
|
|
119
133
|
export declare namespace signNumber {
|
|
120
|
-
|
|
134
|
+
export { n1 as signature };
|
|
121
135
|
}
|
|
136
|
+
/** Return the square root of `x` (`Math.sqrt`). A negative `x` gives NaN. */
|
|
122
137
|
export declare function sqrtNumber(x: number): number;
|
|
123
138
|
export declare namespace sqrtNumber {
|
|
124
|
-
|
|
139
|
+
export { n1 as signature };
|
|
125
140
|
}
|
|
141
|
+
/** Return the square `x * x`. */
|
|
126
142
|
export declare function squareNumber(x: number): number;
|
|
127
143
|
export declare namespace squareNumber {
|
|
128
|
-
|
|
144
|
+
export { n1 as signature };
|
|
129
145
|
}
|
|
130
146
|
/**
|
|
131
147
|
* Calculate xgcd for two numbers
|
|
@@ -136,7 +152,7 @@ export declare namespace squareNumber {
|
|
|
136
152
|
*/
|
|
137
153
|
export declare function xgcdNumber(a: number, b: number): number[];
|
|
138
154
|
export declare namespace xgcdNumber {
|
|
139
|
-
|
|
155
|
+
export { n2 as signature };
|
|
140
156
|
}
|
|
141
157
|
/**
|
|
142
158
|
* Calculates the power of x to y, x^y, for two numbers.
|
|
@@ -146,7 +162,7 @@ export declare namespace xgcdNumber {
|
|
|
146
162
|
*/
|
|
147
163
|
export declare function powNumber(x: number, y: number): number;
|
|
148
164
|
export declare namespace powNumber {
|
|
149
|
-
|
|
165
|
+
export { n2 as signature };
|
|
150
166
|
}
|
|
151
167
|
/**
|
|
152
168
|
* round a number to the given number of decimals, or to zero if decimals is
|
|
@@ -163,6 +179,7 @@ export declare function roundNumber(value: number, decimals?: number): number;
|
|
|
163
179
|
*/
|
|
164
180
|
export declare function normNumber(x: number): number;
|
|
165
181
|
export declare namespace normNumber {
|
|
166
|
-
|
|
182
|
+
export { n1 as signature };
|
|
167
183
|
}
|
|
184
|
+
export {};
|
|
168
185
|
//# sourceMappingURL=arithmetic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arithmetic.d.ts","sourceRoot":"","sources":["../../../src/plain/number/arithmetic.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arithmetic.d.ts","sourceRoot":"","sources":["../../../src/plain/number/arithmetic.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,29 +1,67 @@
|
|
|
1
|
+
declare const n1 = "number";
|
|
2
|
+
declare const n2 = "number, number";
|
|
3
|
+
/**
|
|
4
|
+
* Return the bitwise AND `x & y` of two integers.
|
|
5
|
+
*
|
|
6
|
+
* @throws Error if `x` or `y` is not an integer.
|
|
7
|
+
*/
|
|
1
8
|
export declare function bitAndNumber(x: number, y: number): number;
|
|
2
9
|
export declare namespace bitAndNumber {
|
|
3
|
-
|
|
10
|
+
export { n2 as signature };
|
|
4
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Return the bitwise NOT `~x` of an integer.
|
|
14
|
+
*
|
|
15
|
+
* @throws Error if `x` is not an integer.
|
|
16
|
+
*/
|
|
5
17
|
export declare function bitNotNumber(x: number): number;
|
|
6
18
|
export declare namespace bitNotNumber {
|
|
7
|
-
|
|
19
|
+
export { n1 as signature };
|
|
8
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Return the bitwise OR `x | y` of two integers.
|
|
23
|
+
*
|
|
24
|
+
* @throws Error if `x` or `y` is not an integer.
|
|
25
|
+
*/
|
|
9
26
|
export declare function bitOrNumber(x: number, y: number): number;
|
|
10
27
|
export declare namespace bitOrNumber {
|
|
11
|
-
|
|
28
|
+
export { n2 as signature };
|
|
12
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Return the bitwise XOR `x ^ y` of two integers.
|
|
32
|
+
*
|
|
33
|
+
* @throws Error if `x` or `y` is not an integer.
|
|
34
|
+
*/
|
|
13
35
|
export declare function bitXorNumber(x: number, y: number): number;
|
|
14
36
|
export declare namespace bitXorNumber {
|
|
15
|
-
|
|
37
|
+
export { n2 as signature };
|
|
16
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Return the left shift `x << y` of two integers.
|
|
41
|
+
*
|
|
42
|
+
* @throws Error if `x` or `y` is not an integer.
|
|
43
|
+
*/
|
|
17
44
|
export declare function leftShiftNumber(x: number, y: number): number;
|
|
18
45
|
export declare namespace leftShiftNumber {
|
|
19
|
-
|
|
46
|
+
export { n2 as signature };
|
|
20
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* Return the arithmetic right shift `x >> y` of two integers.
|
|
50
|
+
*
|
|
51
|
+
* @throws Error if `x` or `y` is not an integer.
|
|
52
|
+
*/
|
|
21
53
|
export declare function rightArithShiftNumber(x: number, y: number): number;
|
|
22
54
|
export declare namespace rightArithShiftNumber {
|
|
23
|
-
|
|
55
|
+
export { n2 as signature };
|
|
24
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Return the logical (zero-fill) right shift `x >>> y` of two integers.
|
|
59
|
+
*
|
|
60
|
+
* @throws Error if `x` or `y` is not an integer.
|
|
61
|
+
*/
|
|
25
62
|
export declare function rightLogShiftNumber(x: number, y: number): number;
|
|
26
63
|
export declare namespace rightLogShiftNumber {
|
|
27
|
-
|
|
64
|
+
export { n2 as signature };
|
|
28
65
|
}
|
|
66
|
+
export {};
|
|
29
67
|
//# sourceMappingURL=bitwise.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitwise.d.ts","sourceRoot":"","sources":["../../../src/plain/number/bitwise.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bitwise.d.ts","sourceRoot":"","sources":["../../../src/plain/number/bitwise.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,EAAE,WAAW,CAAC;AACpB,QAAA,MAAM,EAAE,mBAAmB,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMzD;yBANe,YAAY;aAOH,EAAE;;AAE3B;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAM9C;yBANe,YAAY;aAOH,EAAE;;AAE3B;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMxD;yBANe,WAAW;aAOH,EAAE;;AAE1B;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMzD;yBANe,YAAY;aAOH,EAAE;;AAE3B;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAM5D;yBANe,eAAe;aAOH,EAAE;;AAE9B;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMlE;yBANe,qBAAqB;aAOH,EAAE;;AAEpC;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMhE;yBANe,mBAAmB;aAOH,EAAE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the number of ways to choose `k` items from `n` items, without order.
|
|
3
|
+
*
|
|
4
|
+
* The loop alternates multiplication and division to keep intermediate values exact as long
|
|
5
|
+
* as possible.
|
|
6
|
+
*
|
|
7
|
+
* @throws TypeError if `n` or `k` is not a non-negative integer, or if `k > n`.
|
|
8
|
+
*/
|
|
1
9
|
export declare function combinationsNumber(n: number, k: number): number;
|
|
2
10
|
export declare namespace combinationsNumber {
|
|
3
11
|
var signature: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combinations.d.ts","sourceRoot":"","sources":["../../../src/plain/number/combinations.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CA+B/D;yBA/Be,kBAAkB"}
|
|
1
|
+
{"version":3,"file":"combinations.d.ts","sourceRoot":"","sources":["../../../src/plain/number/combinations.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CA+B/D;yBA/Be,kBAAkB"}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
declare const n1 = "number";
|
|
2
|
+
declare const n2 = "number, number";
|
|
3
|
+
/** Return true if `x` is 0 or NaN. */
|
|
1
4
|
export declare function notNumber(x: number): boolean;
|
|
2
5
|
export declare namespace notNumber {
|
|
3
|
-
|
|
6
|
+
export { n1 as signature };
|
|
4
7
|
}
|
|
8
|
+
/** Return true if `x` or `y` is truthy (not 0 and not NaN). */
|
|
5
9
|
export declare function orNumber(x: number, y: number): boolean;
|
|
6
10
|
export declare namespace orNumber {
|
|
7
|
-
|
|
11
|
+
export { n2 as signature };
|
|
8
12
|
}
|
|
13
|
+
/** Return true if exactly one of `x` and `y` is truthy (not 0 and not NaN). */
|
|
9
14
|
export declare function xorNumber(x: number, y: number): boolean;
|
|
10
15
|
export declare namespace xorNumber {
|
|
11
|
-
|
|
16
|
+
export { n2 as signature };
|
|
12
17
|
}
|
|
18
|
+
/** Return true if `x` and `y` are both truthy (not 0 and not NaN). */
|
|
13
19
|
export declare function andNumber(x: number, y: number): boolean;
|
|
14
20
|
export declare namespace andNumber {
|
|
15
|
-
|
|
21
|
+
export { n2 as signature };
|
|
16
22
|
}
|
|
23
|
+
export {};
|
|
17
24
|
//# sourceMappingURL=logical.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logical.d.ts","sourceRoot":"","sources":["../../../src/plain/number/logical.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logical.d.ts","sourceRoot":"","sources":["../../../src/plain/number/logical.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,EAAE,WAAW,CAAC;AACpB,QAAA,MAAM,EAAE,mBAAmB,CAAC;AAE5B,sCAAsC;AACtC,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAE5C;yBAFe,SAAS;aAGH,EAAE;;AAExB,+DAA+D;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAEtD;yBAFe,QAAQ;aAGH,EAAE;;AAEvB,+EAA+E;AAC/E,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAEvD;yBAFe,SAAS;aAGH,EAAE;;AAExB,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAEvD;yBAFe,SAAS;aAGH,EAAE"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the gamma function of `n`.
|
|
3
|
+
*
|
|
4
|
+
* For a positive integer, the result is the exact product `(n - 1)!`. A non-positive integer
|
|
5
|
+
* gives Infinity, and a non-finite integer gives NaN. The result overflows to Infinity for
|
|
6
|
+
* an integer above 171 and for a value of 171.35 or more. Other values use the reflection
|
|
7
|
+
* formula below 0.5, a Stirling series above 85, and the Lanczos approximation otherwise.
|
|
8
|
+
*/
|
|
1
9
|
export declare function gammaNumber(n: number): number;
|
|
2
10
|
export declare namespace gammaNumber {
|
|
3
11
|
var signature: string;
|
|
@@ -8,6 +16,12 @@ export declare const lnSqrt2PI: number;
|
|
|
8
16
|
export declare const lgammaG: number;
|
|
9
17
|
export declare const lgammaN: number;
|
|
10
18
|
export declare const lgammaSeries: number[];
|
|
19
|
+
/**
|
|
20
|
+
* Return the natural logarithm of the gamma function of `n`.
|
|
21
|
+
*
|
|
22
|
+
* A negative `n` gives NaN, and 0 gives Infinity. A non-finite `n` is returned unchanged.
|
|
23
|
+
* Values below 0.5 use the reflection formula. Other values use the Lanczos method.
|
|
24
|
+
*/
|
|
11
25
|
export declare function lgammaNumber(n: number): number;
|
|
12
26
|
export declare namespace lgammaNumber {
|
|
13
27
|
var signature: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"probability.d.ts","sourceRoot":"","sources":["../../../src/plain/number/probability.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAkD7C;yBAlDe,WAAW;;;AAuD3B,eAAO,MAAM,MAAM,EAAE,MAAkB,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,MAAM,EAM1B,CAAC;AAKF,eAAO,MAAM,SAAS,EAAE,MAA+B,CAAC;AAExD,eAAO,MAAM,OAAO,EAAE,MAAU,CAAC;AACjC,eAAO,MAAM,OAAO,EAAE,MAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,MAAM,EAGhC,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAuB9C;yBAvBe,YAAY"}
|
|
1
|
+
{"version":3,"file":"probability.d.ts","sourceRoot":"","sources":["../../../src/plain/number/probability.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAkD7C;yBAlDe,WAAW;;;AAuD3B,eAAO,MAAM,MAAM,EAAE,MAAkB,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,MAAM,EAM1B,CAAC;AAKF,eAAO,MAAM,SAAS,EAAE,MAA+B,CAAC;AAExD,eAAO,MAAM,OAAO,EAAE,MAAU,CAAC;AACjC,eAAO,MAAM,OAAO,EAAE,MAAU,CAAC;AAEjC,eAAO,MAAM,YAAY,EAAE,MAAM,EAGhC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAuB9C;yBAvBe,YAAY"}
|
|
@@ -1,29 +1,43 @@
|
|
|
1
|
+
declare const n2 = "number, number";
|
|
2
|
+
/** Return true if `x === y`. The comparison is exact, with no tolerance. */
|
|
1
3
|
export declare function equalNumber(x: number, y: number): boolean;
|
|
2
4
|
export declare namespace equalNumber {
|
|
3
|
-
|
|
5
|
+
export { n2 as signature };
|
|
4
6
|
}
|
|
7
|
+
/** Return true if `x !== y`. The comparison is exact, with no tolerance. */
|
|
5
8
|
export declare function unequalNumber(x: number, y: number): boolean;
|
|
6
9
|
export declare namespace unequalNumber {
|
|
7
|
-
|
|
10
|
+
export { n2 as signature };
|
|
8
11
|
}
|
|
12
|
+
/** Return true if `x < y`. */
|
|
9
13
|
export declare function smallerNumber(x: number, y: number): boolean;
|
|
10
14
|
export declare namespace smallerNumber {
|
|
11
|
-
|
|
15
|
+
export { n2 as signature };
|
|
12
16
|
}
|
|
17
|
+
/** Return true if `x <= y`. */
|
|
13
18
|
export declare function smallerEqNumber(x: number, y: number): boolean;
|
|
14
19
|
export declare namespace smallerEqNumber {
|
|
15
|
-
|
|
20
|
+
export { n2 as signature };
|
|
16
21
|
}
|
|
22
|
+
/** Return true if `x > y`. */
|
|
17
23
|
export declare function largerNumber(x: number, y: number): boolean;
|
|
18
24
|
export declare namespace largerNumber {
|
|
19
|
-
|
|
25
|
+
export { n2 as signature };
|
|
20
26
|
}
|
|
27
|
+
/** Return true if `x >= y`. */
|
|
21
28
|
export declare function largerEqNumber(x: number, y: number): boolean;
|
|
22
29
|
export declare namespace largerEqNumber {
|
|
23
|
-
|
|
30
|
+
export { n2 as signature };
|
|
24
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Compare `x` and `y` exactly, with no tolerance.
|
|
34
|
+
*
|
|
35
|
+
* The result is 0 if they are equal, -1 if `x < y`, and 1 in all other cases, which
|
|
36
|
+
* include NaN.
|
|
37
|
+
*/
|
|
25
38
|
export declare function compareNumber(x: number, y: number): number;
|
|
26
39
|
export declare namespace compareNumber {
|
|
27
|
-
|
|
40
|
+
export { n2 as signature };
|
|
28
41
|
}
|
|
42
|
+
export {};
|
|
29
43
|
//# sourceMappingURL=relational.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relational.d.ts","sourceRoot":"","sources":["../../../src/plain/number/relational.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"relational.d.ts","sourceRoot":"","sources":["../../../src/plain/number/relational.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,EAAE,mBAAmB,CAAC;AAE5B,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAEzD;yBAFe,WAAW;aAGH,EAAE;;AAE1B,4EAA4E;AAC5E,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE3D;yBAFe,aAAa;aAGH,EAAE;;AAE5B,8BAA8B;AAC9B,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE3D;yBAFe,aAAa;aAGH,EAAE;;AAE5B,+BAA+B;AAC/B,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE7D;yBAFe,eAAe;aAGH,EAAE;;AAE9B,8BAA8B;AAC9B,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE1D;yBAFe,YAAY;aAGH,EAAE;;AAE3B,+BAA+B;AAC/B,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE5D;yBAFe,cAAc;aAGH,EAAE;;AAE7B;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAI1D;yBAJe,aAAa;aAKH,EAAE"}
|