@danielsimonjr/mathts-functions 0.2.3 → 0.2.5
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/README.md +21 -0
- package/dist/algebra/decomposition/lup.d.ts +78 -0
- package/dist/algebra/decomposition/lup.d.ts.map +1 -0
- package/dist/algebra/decomposition/qr.d.ts +60 -0
- package/dist/algebra/decomposition/qr.d.ts.map +1 -0
- package/dist/algebra/decomposition/schur.d.ts +40 -0
- package/dist/algebra/decomposition/schur.d.ts.map +1 -0
- package/dist/algebra/decomposition/slu.d.ts +37 -0
- package/dist/algebra/decomposition/slu.d.ts.map +1 -0
- package/dist/algebra/derivative.d.ts +35 -0
- package/dist/algebra/derivative.d.ts.map +1 -0
- package/dist/algebra/leafCount.d.ts +9 -0
- package/dist/algebra/leafCount.d.ts.map +1 -0
- package/dist/algebra/lyap.d.ts +14 -0
- package/dist/algebra/lyap.d.ts.map +1 -0
- package/dist/algebra/polynomialRoot.d.ts +22 -0
- package/dist/algebra/polynomialRoot.d.ts.map +1 -0
- package/dist/algebra/rationalize.d.ts +43 -0
- package/dist/algebra/rationalize.d.ts.map +1 -0
- package/dist/algebra/resolve.d.ts +25 -0
- package/dist/algebra/resolve.d.ts.map +1 -0
- package/dist/algebra/simplify/util.d.ts +35 -0
- package/dist/algebra/simplify/util.d.ts.map +1 -0
- package/dist/algebra/simplify/wildcards.d.ts +5 -0
- package/dist/algebra/simplify/wildcards.d.ts.map +1 -0
- package/dist/algebra/simplify.d.ts +57 -0
- package/dist/algebra/simplify.d.ts.map +1 -0
- package/dist/algebra/simplifyConstant.d.ts +20 -0
- package/dist/algebra/simplifyConstant.d.ts.map +1 -0
- package/dist/algebra/simplifyCore.d.ts +21 -0
- package/dist/algebra/simplifyCore.d.ts.map +1 -0
- package/dist/algebra/solver/lsolve.d.ts +46 -0
- package/dist/algebra/solver/lsolve.d.ts.map +1 -0
- package/dist/algebra/solver/lsolveAll.d.ts +53 -0
- package/dist/algebra/solver/lsolveAll.d.ts.map +1 -0
- package/dist/algebra/solver/lusolve.d.ts +62 -0
- package/dist/algebra/solver/lusolve.d.ts.map +1 -0
- package/dist/algebra/solver/usolve.d.ts +46 -0
- package/dist/algebra/solver/usolve.d.ts.map +1 -0
- package/dist/algebra/solver/usolveAll.d.ts +53 -0
- package/dist/algebra/solver/usolveAll.d.ts.map +1 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts +31 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts.map +1 -0
- package/dist/algebra/sparse/csAmd.d.ts +15 -0
- package/dist/algebra/sparse/csAmd.d.ts.map +1 -0
- package/dist/algebra/sparse/csChol.d.ts +39 -0
- package/dist/algebra/sparse/csChol.d.ts.map +1 -0
- package/dist/algebra/sparse/csCounts.d.ts +13 -0
- package/dist/algebra/sparse/csCounts.d.ts.map +1 -0
- package/dist/algebra/sparse/csCumsum.d.ts +9 -0
- package/dist/algebra/sparse/csCumsum.d.ts.map +1 -0
- package/dist/algebra/sparse/csDfs.d.ts +23 -0
- package/dist/algebra/sparse/csDfs.d.ts.map +1 -0
- package/dist/algebra/sparse/csEreach.d.ts +20 -0
- package/dist/algebra/sparse/csEreach.d.ts.map +1 -0
- package/dist/algebra/sparse/csEtree.d.ts +16 -0
- package/dist/algebra/sparse/csEtree.d.ts.map +1 -0
- package/dist/algebra/sparse/csFkeep.d.ts +22 -0
- package/dist/algebra/sparse/csFkeep.d.ts.map +1 -0
- package/dist/algebra/sparse/csFlip.d.ts +7 -0
- package/dist/algebra/sparse/csFlip.d.ts.map +1 -0
- package/dist/algebra/sparse/csIpvec.d.ts +10 -0
- package/dist/algebra/sparse/csIpvec.d.ts.map +1 -0
- package/dist/algebra/sparse/csLeaf.d.ts +21 -0
- package/dist/algebra/sparse/csLeaf.d.ts.map +1 -0
- package/dist/algebra/sparse/csLu.d.ts +37 -0
- package/dist/algebra/sparse/csLu.d.ts.map +1 -0
- package/dist/algebra/sparse/csMark.d.ts +8 -0
- package/dist/algebra/sparse/csMark.d.ts.map +1 -0
- package/dist/algebra/sparse/csMarked.d.ts +8 -0
- package/dist/algebra/sparse/csMarked.d.ts.map +1 -0
- package/dist/algebra/sparse/csPermute.d.ts +27 -0
- package/dist/algebra/sparse/csPermute.d.ts.map +1 -0
- package/dist/algebra/sparse/csPost.d.ts +8 -0
- package/dist/algebra/sparse/csPost.d.ts.map +1 -0
- package/dist/algebra/sparse/csReach.d.ts +23 -0
- package/dist/algebra/sparse/csReach.d.ts.map +1 -0
- package/dist/algebra/sparse/csSpsolve.d.ts +15 -0
- package/dist/algebra/sparse/csSpsolve.d.ts.map +1 -0
- package/dist/algebra/sparse/csSqr.d.ts +25 -0
- package/dist/algebra/sparse/csSqr.d.ts.map +1 -0
- package/dist/algebra/sparse/csSymperm.d.ts +22 -0
- package/dist/algebra/sparse/csSymperm.d.ts.map +1 -0
- package/dist/algebra/sparse/csTdfs.d.ts +13 -0
- package/dist/algebra/sparse/csTdfs.d.ts.map +1 -0
- package/dist/algebra/sparse/csUnflip.d.ts +7 -0
- package/dist/algebra/sparse/csUnflip.d.ts.map +1 -0
- package/dist/algebra/sylvester.d.ts +30 -0
- package/dist/algebra/sylvester.d.ts.map +1 -0
- package/dist/algebra/symbolicEqual.d.ts +18 -0
- package/dist/algebra/symbolicEqual.d.ts.map +1 -0
- package/dist/arithmetic/abs.d.ts +7 -0
- package/dist/arithmetic/abs.d.ts.map +1 -0
- package/dist/arithmetic/addScalar.d.ts +7 -0
- package/dist/arithmetic/addScalar.d.ts.map +1 -0
- package/dist/arithmetic/cbrt.d.ts +37 -0
- package/dist/arithmetic/cbrt.d.ts.map +1 -0
- package/dist/arithmetic/ceil.d.ts +22 -0
- package/dist/arithmetic/ceil.d.ts.map +1 -0
- package/dist/arithmetic/cube.d.ts +7 -0
- package/dist/arithmetic/cube.d.ts.map +1 -0
- package/dist/arithmetic/divide.d.ts +42 -0
- package/dist/arithmetic/divide.d.ts.map +1 -0
- package/dist/arithmetic/divideScalar.d.ts +8 -0
- package/dist/arithmetic/divideScalar.d.ts.map +1 -0
- package/dist/arithmetic/dotDivide.d.ts +13 -0
- package/dist/arithmetic/dotDivide.d.ts.map +1 -0
- package/dist/arithmetic/dotMultiply.d.ts +11 -0
- package/dist/arithmetic/dotMultiply.d.ts.map +1 -0
- package/dist/arithmetic/dotPow.d.ts +16 -0
- package/dist/arithmetic/dotPow.d.ts.map +1 -0
- package/dist/arithmetic/exp.d.ts +7 -0
- package/dist/arithmetic/exp.d.ts.map +1 -0
- package/dist/arithmetic/expm1.d.ts +15 -0
- package/dist/arithmetic/expm1.d.ts.map +1 -0
- package/dist/arithmetic/fix.d.ts +30 -0
- package/dist/arithmetic/fix.d.ts.map +1 -0
- package/dist/arithmetic/floor.d.ts +22 -0
- package/dist/arithmetic/floor.d.ts.map +1 -0
- package/dist/arithmetic/gcd.d.ts +25 -0
- package/dist/arithmetic/gcd.d.ts.map +1 -0
- package/dist/arithmetic/hypot.d.ts +14 -0
- package/dist/arithmetic/hypot.d.ts.map +1 -0
- package/dist/arithmetic/invmod.d.ts +19 -0
- package/dist/arithmetic/invmod.d.ts.map +1 -0
- package/dist/arithmetic/lcm.d.ts +10 -0
- package/dist/arithmetic/lcm.d.ts.map +1 -0
- package/dist/arithmetic/log.d.ts +18 -0
- package/dist/arithmetic/log.d.ts.map +1 -0
- package/dist/arithmetic/log10.d.ts +18 -0
- package/dist/arithmetic/log10.d.ts.map +1 -0
- package/dist/arithmetic/log1p.d.ts +19 -0
- package/dist/arithmetic/log1p.d.ts.map +1 -0
- package/dist/arithmetic/log2.d.ts +17 -0
- package/dist/arithmetic/log2.d.ts.map +1 -0
- package/dist/arithmetic/mod.d.ts +15 -0
- package/dist/arithmetic/mod.d.ts.map +1 -0
- package/dist/arithmetic/multiplyScalar.d.ts +7 -0
- package/dist/arithmetic/multiplyScalar.d.ts.map +1 -0
- package/dist/arithmetic/norm.d.ts +33 -0
- package/dist/arithmetic/norm.d.ts.map +1 -0
- package/dist/arithmetic/nthRoot.d.ts +38 -0
- package/dist/arithmetic/nthRoot.d.ts.map +1 -0
- package/dist/arithmetic/nthRoots.d.ts +23 -0
- package/dist/arithmetic/nthRoots.d.ts.map +1 -0
- package/dist/arithmetic/pow.d.ts +34 -0
- package/dist/arithmetic/pow.d.ts.map +1 -0
- package/dist/arithmetic/round.d.ts +27 -0
- package/dist/arithmetic/round.d.ts.map +1 -0
- package/dist/arithmetic/sign.d.ts +31 -0
- package/dist/arithmetic/sign.d.ts.map +1 -0
- package/dist/arithmetic/sqrt.d.ts +16 -0
- package/dist/arithmetic/sqrt.d.ts.map +1 -0
- package/dist/arithmetic/square.d.ts +7 -0
- package/dist/arithmetic/square.d.ts.map +1 -0
- package/dist/arithmetic/subtract.d.ts +18 -0
- package/dist/arithmetic/subtract.d.ts.map +1 -0
- package/dist/arithmetic/subtractScalar.d.ts +7 -0
- package/dist/arithmetic/subtractScalar.d.ts.map +1 -0
- package/dist/arithmetic/unaryMinus.d.ts +10 -0
- package/dist/arithmetic/unaryMinus.d.ts.map +1 -0
- package/dist/arithmetic/unaryPlus.d.ts +10 -0
- package/dist/arithmetic/unaryPlus.d.ts.map +1 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts +37 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts.map +1 -0
- package/dist/arithmetic/xgcd.d.ts +25 -0
- package/dist/arithmetic/xgcd.d.ts.map +1 -0
- package/dist/bitwise/bitAnd.d.ts +10 -0
- package/dist/bitwise/bitAnd.d.ts.map +1 -0
- package/dist/bitwise/bitNot.d.ts +7 -0
- package/dist/bitwise/bitNot.d.ts.map +1 -0
- package/dist/bitwise/bitOr.d.ts +11 -0
- package/dist/bitwise/bitOr.d.ts.map +1 -0
- package/dist/bitwise/bitXor.d.ts +11 -0
- package/dist/bitwise/bitXor.d.ts.map +1 -0
- package/dist/bitwise/leftShift.d.ts +17 -0
- package/dist/bitwise/leftShift.d.ts.map +1 -0
- package/dist/bitwise/rightArithShift.d.ts +17 -0
- package/dist/bitwise/rightArithShift.d.ts.map +1 -0
- package/dist/bitwise/rightLogShift.d.ts +17 -0
- package/dist/bitwise/rightLogShift.d.ts.map +1 -0
- package/dist/bitwise/useMatrixForArrayScalar.d.ts +19 -0
- package/dist/bitwise/useMatrixForArrayScalar.d.ts.map +1 -0
- package/dist/combinatorics/bellNumbers.d.ts +14 -0
- package/dist/combinatorics/bellNumbers.d.ts.map +1 -0
- package/dist/combinatorics/catalan.d.ts +16 -0
- package/dist/combinatorics/catalan.d.ts.map +1 -0
- package/dist/combinatorics/composition.d.ts +16 -0
- package/dist/combinatorics/composition.d.ts.map +1 -0
- package/dist/combinatorics/stirlingS2.d.ts +22 -0
- package/dist/combinatorics/stirlingS2.d.ts.map +1 -0
- package/dist/complex/arg.d.ts +7 -0
- package/dist/complex/arg.d.ts.map +1 -0
- package/dist/complex/conj.d.ts +7 -0
- package/dist/complex/conj.d.ts.map +1 -0
- package/dist/complex/im.d.ts +7 -0
- package/dist/complex/im.d.ts.map +1 -0
- package/dist/complex/re.d.ts +7 -0
- package/dist/complex/re.d.ts.map +1 -0
- package/dist/core/config.d.ts +17 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/create.d.ts +137 -0
- package/dist/core/create.d.ts.map +1 -0
- package/dist/core/function/config.d.ts +35 -0
- package/dist/core/function/config.d.ts.map +1 -0
- package/dist/core/function/import.d.ts +30 -0
- package/dist/core/function/import.d.ts.map +1 -0
- package/dist/core/function/typed.d.ts +127 -0
- package/dist/core/function/typed.d.ts.map +1 -0
- package/dist/error/ArgumentsError.d.ts +21 -0
- package/dist/error/ArgumentsError.d.ts.map +1 -0
- package/dist/error/DimensionError.d.ts +18 -0
- package/dist/error/DimensionError.d.ts.map +1 -0
- package/dist/error/IndexError.d.ts +24 -0
- package/dist/error/IndexError.d.ts.map +1 -0
- package/dist/error/MathjsError.d.ts +13 -0
- package/dist/error/MathjsError.d.ts.map +1 -0
- package/dist/expression/operators.d.ts +942 -0
- package/dist/expression/operators.d.ts.map +1 -0
- package/dist/factories/evaluate.d.ts +91 -0
- package/dist/factories/evaluate.d.ts.map +1 -0
- package/dist/factories/index.d.ts +317 -0
- package/dist/factories/index.d.ts.map +1 -0
- package/dist/factories/matrix-bridge.d.ts +241 -0
- package/dist/factories/matrix-bridge.d.ts.map +1 -0
- package/dist/factories/scope.d.ts +12 -0
- package/dist/factories/scope.d.ts.map +1 -0
- package/dist/geometry/distance.d.ts +15 -0
- package/dist/geometry/distance.d.ts.map +1 -0
- package/dist/geometry/intersect.d.ts +26 -0
- package/dist/geometry/intersect.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -30
- package/dist/logical/and.d.ts +17 -0
- package/dist/logical/and.d.ts.map +1 -0
- package/dist/logical/not.d.ts +7 -0
- package/dist/logical/not.d.ts.map +1 -0
- package/dist/logical/nullish.d.ts +11 -0
- package/dist/logical/nullish.d.ts.map +1 -0
- package/dist/logical/or.d.ts +15 -0
- package/dist/logical/or.d.ts.map +1 -0
- package/dist/logical/xor.d.ts +15 -0
- package/dist/logical/xor.d.ts.map +1 -0
- package/dist/matrix/column.d.ts +22 -0
- package/dist/matrix/column.d.ts.map +1 -0
- package/dist/matrix/concat.d.ts +6 -0
- package/dist/matrix/concat.d.ts.map +1 -0
- package/dist/matrix/count.d.ts +9 -0
- package/dist/matrix/count.d.ts.map +1 -0
- package/dist/matrix/cross.d.ts +7 -0
- package/dist/matrix/cross.d.ts.map +1 -0
- package/dist/matrix/ctranspose.d.ts +9 -0
- package/dist/matrix/ctranspose.d.ts.map +1 -0
- package/dist/matrix/det.d.ts +42 -0
- package/dist/matrix/det.d.ts.map +1 -0
- package/dist/matrix/diag.d.ts +26 -0
- package/dist/matrix/diag.d.ts.map +1 -0
- package/dist/matrix/diff.d.ts +8 -0
- package/dist/matrix/diff.d.ts.map +1 -0
- package/dist/matrix/dot.d.ts +17 -0
- package/dist/matrix/dot.d.ts.map +1 -0
- package/dist/matrix/eigs/complexEigs.d.ts +48 -0
- package/dist/matrix/eigs/complexEigs.d.ts.map +1 -0
- package/dist/matrix/eigs/realSymmetric.d.ts +34 -0
- package/dist/matrix/eigs/realSymmetric.d.ts.map +1 -0
- package/dist/matrix/eigs.d.ts +75 -0
- package/dist/matrix/eigs.d.ts.map +1 -0
- package/dist/matrix/expm.d.ts +26 -0
- package/dist/matrix/expm.d.ts.map +1 -0
- package/dist/matrix/fft.d.ts +41 -0
- package/dist/matrix/fft.d.ts.map +1 -0
- package/dist/matrix/filter.d.ts +7 -0
- package/dist/matrix/filter.d.ts.map +1 -0
- package/dist/matrix/flatten.d.ts +7 -0
- package/dist/matrix/flatten.d.ts.map +1 -0
- package/dist/matrix/forEach.d.ts +7 -0
- package/dist/matrix/forEach.d.ts.map +1 -0
- package/dist/matrix/getMatrixDataType.d.ts +7 -0
- package/dist/matrix/getMatrixDataType.d.ts.map +1 -0
- package/dist/matrix/identity.d.ts +41 -0
- package/dist/matrix/identity.d.ts.map +1 -0
- package/dist/matrix/ifft.d.ts +33 -0
- package/dist/matrix/ifft.d.ts.map +1 -0
- package/dist/matrix/inv.d.ts +48 -0
- package/dist/matrix/inv.d.ts.map +1 -0
- package/dist/matrix/kron.d.ts +17 -0
- package/dist/matrix/kron.d.ts.map +1 -0
- package/dist/matrix/map.d.ts +7 -0
- package/dist/matrix/map.d.ts.map +1 -0
- package/dist/matrix/mapSlices.d.ts +6 -0
- package/dist/matrix/mapSlices.d.ts.map +1 -0
- package/dist/matrix/matrixFromColumns.d.ts +36 -0
- package/dist/matrix/matrixFromColumns.d.ts.map +1 -0
- package/dist/matrix/matrixFromFunction.d.ts +7 -0
- package/dist/matrix/matrixFromFunction.d.ts.map +1 -0
- package/dist/matrix/matrixFromRows.d.ts +36 -0
- package/dist/matrix/matrixFromRows.d.ts.map +1 -0
- package/dist/matrix/ones.d.ts +3 -0
- package/dist/matrix/ones.d.ts.map +1 -0
- package/dist/matrix/partitionSelect.d.ts +13 -0
- package/dist/matrix/partitionSelect.d.ts.map +1 -0
- package/dist/matrix/pinv.d.ts +51 -0
- package/dist/matrix/pinv.d.ts.map +1 -0
- package/dist/matrix/range.d.ts +27 -0
- package/dist/matrix/range.d.ts.map +1 -0
- package/dist/matrix/reshape.d.ts +8 -0
- package/dist/matrix/reshape.d.ts.map +1 -0
- package/dist/matrix/resize.d.ts +17 -0
- package/dist/matrix/resize.d.ts.map +1 -0
- package/dist/matrix/rotate.d.ts +7 -0
- package/dist/matrix/rotate.d.ts.map +1 -0
- package/dist/matrix/rotationMatrix.d.ts +17 -0
- package/dist/matrix/rotationMatrix.d.ts.map +1 -0
- package/dist/matrix/row.d.ts +22 -0
- package/dist/matrix/row.d.ts.map +1 -0
- package/dist/matrix/size.d.ts +9 -0
- package/dist/matrix/size.d.ts.map +1 -0
- package/dist/matrix/sort.d.ts +8 -0
- package/dist/matrix/sort.d.ts.map +1 -0
- package/dist/matrix/sqrtm.d.ts +33 -0
- package/dist/matrix/sqrtm.d.ts.map +1 -0
- package/dist/matrix/squeeze.d.ts +7 -0
- package/dist/matrix/squeeze.d.ts.map +1 -0
- package/dist/matrix/subset.d.ts +7 -0
- package/dist/matrix/subset.d.ts.map +1 -0
- package/dist/matrix/trace.d.ts +25 -0
- package/dist/matrix/trace.d.ts.map +1 -0
- package/dist/matrix/transpose.d.ts +45 -0
- package/dist/matrix/transpose.d.ts.map +1 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts +32 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts.map +1 -0
- package/dist/matrix/zeros.d.ts +3 -0
- package/dist/matrix/zeros.d.ts.map +1 -0
- package/dist/numeric/solveODE.d.ts +2 -0
- package/dist/numeric/solveODE.d.ts.map +1 -0
- package/dist/plain/number/arithmetic.d.ts +168 -0
- package/dist/plain/number/arithmetic.d.ts.map +1 -0
- package/dist/plain/number/bitwise.d.ts +29 -0
- package/dist/plain/number/bitwise.d.ts.map +1 -0
- package/dist/plain/number/combinations.d.ts +5 -0
- package/dist/plain/number/combinations.d.ts.map +1 -0
- package/dist/plain/number/constants.d.ts +5 -0
- package/dist/plain/number/constants.d.ts.map +1 -0
- package/dist/plain/number/index.d.ts +10 -0
- package/dist/plain/number/index.d.ts.map +1 -0
- package/dist/plain/number/logical.d.ts +17 -0
- package/dist/plain/number/logical.d.ts.map +1 -0
- package/dist/plain/number/probability.d.ts +15 -0
- package/dist/plain/number/probability.d.ts.map +1 -0
- package/dist/plain/number/relational.d.ts +29 -0
- package/dist/plain/number/relational.d.ts.map +1 -0
- package/dist/plain/number/trigonometry.d.ts +101 -0
- package/dist/plain/number/trigonometry.d.ts.map +1 -0
- package/dist/plain/number/utils.d.ts +21 -0
- package/dist/plain/number/utils.d.ts.map +1 -0
- package/dist/probability/bernoulli.d.ts +19 -0
- package/dist/probability/bernoulli.d.ts.map +1 -0
- package/dist/probability/combinations.d.ts +7 -0
- package/dist/probability/combinations.d.ts.map +1 -0
- package/dist/probability/combinationsWithRep.d.ts +7 -0
- package/dist/probability/combinationsWithRep.d.ts.map +1 -0
- package/dist/probability/factorial.d.ts +8 -0
- package/dist/probability/factorial.d.ts.map +1 -0
- package/dist/probability/gamma.d.ts +45 -0
- package/dist/probability/gamma.d.ts.map +1 -0
- package/dist/probability/kldivergence.d.ts +18 -0
- package/dist/probability/kldivergence.d.ts.map +1 -0
- package/dist/probability/lgamma.d.ts +24 -0
- package/dist/probability/lgamma.d.ts.map +1 -0
- package/dist/probability/multinomial.d.ts +13 -0
- package/dist/probability/multinomial.d.ts.map +1 -0
- package/dist/probability/permutations.d.ts +8 -0
- package/dist/probability/permutations.d.ts.map +1 -0
- package/dist/probability/pickRandom.d.ts +10 -0
- package/dist/probability/pickRandom.d.ts.map +1 -0
- package/dist/probability/random.d.ts +11 -0
- package/dist/probability/random.d.ts.map +1 -0
- package/dist/probability/randomInt.d.ts +11 -0
- package/dist/probability/randomInt.d.ts.map +1 -0
- package/dist/probability/util/randomMatrix.d.ts +10 -0
- package/dist/probability/util/randomMatrix.d.ts.map +1 -0
- package/dist/probability/util/seededRNG.d.ts +4 -0
- package/dist/probability/util/seededRNG.d.ts.map +1 -0
- package/dist/relational/compare.d.ts +38 -0
- package/dist/relational/compare.d.ts.map +1 -0
- package/dist/relational/compareNatural.d.ts +8 -0
- package/dist/relational/compareNatural.d.ts.map +1 -0
- package/dist/relational/compareText.d.ts +15 -0
- package/dist/relational/compareText.d.ts.map +1 -0
- package/dist/relational/compareUnits.d.ts +9 -0
- package/dist/relational/compareUnits.d.ts.map +1 -0
- package/dist/relational/deepEqual.d.ts +8 -0
- package/dist/relational/deepEqual.d.ts.map +1 -0
- package/dist/relational/equal.d.ts +26 -0
- package/dist/relational/equal.d.ts.map +1 -0
- package/dist/relational/equalScalar.d.ts +11 -0
- package/dist/relational/equalScalar.d.ts.map +1 -0
- package/dist/relational/equalText.d.ts +9 -0
- package/dist/relational/equalText.d.ts.map +1 -0
- package/dist/relational/larger.d.ts +34 -0
- package/dist/relational/larger.d.ts.map +1 -0
- package/dist/relational/largerEq.d.ts +27 -0
- package/dist/relational/largerEq.d.ts.map +1 -0
- package/dist/relational/smaller.d.ts +34 -0
- package/dist/relational/smaller.d.ts.map +1 -0
- package/dist/relational/smallerEq.d.ts +27 -0
- package/dist/relational/smallerEq.d.ts.map +1 -0
- package/dist/relational/unequal.d.ts +28 -0
- package/dist/relational/unequal.d.ts.map +1 -0
- package/dist/set/setCartesian.d.ts +15 -0
- package/dist/set/setCartesian.d.ts.map +1 -0
- package/dist/set/setDifference.d.ts +15 -0
- package/dist/set/setDifference.d.ts.map +1 -0
- package/dist/set/setDistinct.d.ts +2 -0
- package/dist/set/setDistinct.d.ts.map +1 -0
- package/dist/set/setIntersect.d.ts +15 -0
- package/dist/set/setIntersect.d.ts.map +1 -0
- package/dist/set/setIsSubset.d.ts +2 -0
- package/dist/set/setIsSubset.d.ts.map +1 -0
- package/dist/set/setMultiplicity.d.ts +2 -0
- package/dist/set/setMultiplicity.d.ts.map +1 -0
- package/dist/set/setPowerset.d.ts +2 -0
- package/dist/set/setPowerset.d.ts.map +1 -0
- package/dist/set/setSize.d.ts +2 -0
- package/dist/set/setSize.d.ts.map +1 -0
- package/dist/set/setSymDifference.d.ts +15 -0
- package/dist/set/setSymDifference.d.ts.map +1 -0
- package/dist/set/setUnion.d.ts +16 -0
- package/dist/set/setUnion.d.ts.map +1 -0
- package/dist/signal/freqz.d.ts +2 -0
- package/dist/signal/freqz.d.ts.map +1 -0
- package/dist/signal/zpk2tf.d.ts +2 -0
- package/dist/signal/zpk2tf.d.ts.map +1 -0
- package/dist/special/erf.d.ts +7 -0
- package/dist/special/erf.d.ts.map +1 -0
- package/dist/special/zeta.d.ts +38 -0
- package/dist/special/zeta.d.ts.map +1 -0
- package/dist/statistics/corr.d.ts +18 -0
- package/dist/statistics/corr.d.ts.map +1 -0
- package/dist/statistics/cumsum.d.ts +9 -0
- package/dist/statistics/cumsum.d.ts.map +1 -0
- package/dist/statistics/mad.d.ts +11 -0
- package/dist/statistics/mad.d.ts.map +1 -0
- package/dist/statistics/max.d.ts +12 -0
- package/dist/statistics/max.d.ts.map +1 -0
- package/dist/statistics/mean.d.ts +9 -0
- package/dist/statistics/mean.d.ts.map +1 -0
- package/dist/statistics/median.d.ts +11 -0
- package/dist/statistics/median.d.ts.map +1 -0
- package/dist/statistics/min.d.ts +12 -0
- package/dist/statistics/min.d.ts.map +1 -0
- package/dist/statistics/mode.d.ts +9 -0
- package/dist/statistics/mode.d.ts.map +1 -0
- package/dist/statistics/prod.d.ts +12 -0
- package/dist/statistics/prod.d.ts.map +1 -0
- package/dist/statistics/quantileSeq.d.ts +26 -0
- package/dist/statistics/quantileSeq.d.ts.map +1 -0
- package/dist/statistics/std.d.ts +10 -0
- package/dist/statistics/std.d.ts.map +1 -0
- package/dist/statistics/sum.d.ts +12 -0
- package/dist/statistics/sum.d.ts.map +1 -0
- package/dist/statistics/utils/improveErrorMessage.d.ts +18 -0
- package/dist/statistics/utils/improveErrorMessage.d.ts.map +1 -0
- package/dist/statistics/variance.d.ts +13 -0
- package/dist/statistics/variance.d.ts.map +1 -0
- package/dist/string/bin.d.ts +36 -0
- package/dist/string/bin.d.ts.map +1 -0
- package/dist/string/format.d.ts +7 -0
- package/dist/string/format.d.ts.map +1 -0
- package/dist/string/hex.d.ts +35 -0
- package/dist/string/hex.d.ts.map +1 -0
- package/dist/string/oct.d.ts +36 -0
- package/dist/string/oct.d.ts.map +1 -0
- package/dist/string/print.d.ts +7 -0
- package/dist/string/print.d.ts.map +1 -0
- package/dist/trigonometry/acos.d.ts +16 -0
- package/dist/trigonometry/acos.d.ts.map +1 -0
- package/dist/trigonometry/acosh.d.ts +14 -0
- package/dist/trigonometry/acosh.d.ts.map +1 -0
- package/dist/trigonometry/acot.d.ts +12 -0
- package/dist/trigonometry/acot.d.ts.map +1 -0
- package/dist/trigonometry/acoth.d.ts +19 -0
- package/dist/trigonometry/acoth.d.ts.map +1 -0
- package/dist/trigonometry/acsc.d.ts +19 -0
- package/dist/trigonometry/acsc.d.ts.map +1 -0
- package/dist/trigonometry/acsch.d.ts +12 -0
- package/dist/trigonometry/acsch.d.ts.map +1 -0
- package/dist/trigonometry/asec.d.ts +19 -0
- package/dist/trigonometry/asec.d.ts.map +1 -0
- package/dist/trigonometry/asech.d.ts +19 -0
- package/dist/trigonometry/asech.d.ts.map +1 -0
- package/dist/trigonometry/asin.d.ts +16 -0
- package/dist/trigonometry/asin.d.ts.map +1 -0
- package/dist/trigonometry/asinh.d.ts +5 -0
- package/dist/trigonometry/asinh.d.ts.map +1 -0
- package/dist/trigonometry/atan.d.ts +7 -0
- package/dist/trigonometry/atan.d.ts.map +1 -0
- package/dist/trigonometry/atan2.d.ts +22 -0
- package/dist/trigonometry/atan2.d.ts.map +1 -0
- package/dist/trigonometry/atanh.d.ts +14 -0
- package/dist/trigonometry/atanh.d.ts.map +1 -0
- package/dist/trigonometry/cos.d.ts +7 -0
- package/dist/trigonometry/cos.d.ts.map +1 -0
- package/dist/trigonometry/cosh.d.ts +7 -0
- package/dist/trigonometry/cosh.d.ts.map +1 -0
- package/dist/trigonometry/cot.d.ts +12 -0
- package/dist/trigonometry/cot.d.ts.map +1 -0
- package/dist/trigonometry/coth.d.ts +12 -0
- package/dist/trigonometry/coth.d.ts.map +1 -0
- package/dist/trigonometry/csc.d.ts +12 -0
- package/dist/trigonometry/csc.d.ts.map +1 -0
- package/dist/trigonometry/csch.d.ts +12 -0
- package/dist/trigonometry/csch.d.ts.map +1 -0
- package/dist/trigonometry/sec.d.ts +12 -0
- package/dist/trigonometry/sec.d.ts.map +1 -0
- package/dist/trigonometry/sech.d.ts +12 -0
- package/dist/trigonometry/sech.d.ts.map +1 -0
- package/dist/trigonometry/sin.d.ts +7 -0
- package/dist/trigonometry/sin.d.ts.map +1 -0
- package/dist/trigonometry/sinh.d.ts +7 -0
- package/dist/trigonometry/sinh.d.ts.map +1 -0
- package/dist/trigonometry/tan.d.ts +7 -0
- package/dist/trigonometry/tan.d.ts.map +1 -0
- package/dist/trigonometry/tanh.d.ts +7 -0
- package/dist/trigonometry/tanh.d.ts.map +1 -0
- package/dist/trigonometry/trigUnit.d.ts +9 -0
- package/dist/trigonometry/trigUnit.d.ts.map +1 -0
- package/dist/type/bignumber/BigNumber.d.ts +46 -0
- package/dist/type/bignumber/BigNumber.d.ts.map +1 -0
- package/dist/type/chain/Chain.d.ts +58 -0
- package/dist/type/chain/Chain.d.ts.map +1 -0
- package/dist/type/chain/function/chain.d.ts +6 -0
- package/dist/type/chain/function/chain.d.ts.map +1 -0
- package/dist/type/complex/Complex.d.ts +74 -0
- package/dist/type/complex/Complex.d.ts.map +1 -0
- package/dist/type/local/Decimal.d.ts +223 -0
- package/dist/type/local/Decimal.d.ts.map +1 -0
- package/dist/type/matrix/FibonacciHeap.d.ts +59 -0
- package/dist/type/matrix/FibonacciHeap.d.ts.map +1 -0
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts +282 -0
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts.map +1 -0
- package/dist/type/matrix/MatrixIndex.d.ts +386 -0
- package/dist/type/matrix/MatrixIndex.d.ts.map +1 -0
- package/dist/type/matrix/Spa.d.ts +40 -0
- package/dist/type/matrix/Spa.d.ts.map +1 -0
- package/dist/type/matrix/function/index.d.ts +11 -0
- package/dist/type/matrix/function/index.d.ts.map +1 -0
- package/dist/type/matrix/types.d.ts +435 -0
- package/dist/type/matrix/types.d.ts.map +1 -0
- package/dist/type/matrix/utils/broadcast.d.ts +18 -0
- package/dist/type/matrix/utils/broadcast.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo01xDSid.d.ts +34 -0
- package/dist/type/matrix/utils/matAlgo01xDSid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo02xDS0.d.ts +32 -0
- package/dist/type/matrix/utils/matAlgo02xDS0.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo03xDSf.d.ts +31 -0
- package/dist/type/matrix/utils/matAlgo03xDSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo04xSidSid.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo04xSidSid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo05xSfSf.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo05xSfSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo06xS0S0.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo06xS0S0.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo07xSSf.d.ts +26 -0
- package/dist/type/matrix/utils/matAlgo07xSSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo08xS0Sid.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo08xS0Sid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo09xS0Sf.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo09xS0Sf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo10xSids.d.ts +33 -0
- package/dist/type/matrix/utils/matAlgo10xSids.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo11xS0s.d.ts +19 -0
- package/dist/type/matrix/utils/matAlgo11xS0s.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo12xSfs.d.ts +33 -0
- package/dist/type/matrix/utils/matAlgo12xSfs.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo13xDD.d.ts +20 -0
- package/dist/type/matrix/utils/matAlgo13xDD.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo14xDs.d.ts +19 -0
- package/dist/type/matrix/utils/matAlgo14xDs.d.ts.map +1 -0
- package/dist/type/matrix/utils/matrixAlgorithmSuite.d.ts +23 -0
- package/dist/type/matrix/utils/matrixAlgorithmSuite.d.ts.map +1 -0
- package/dist/type/resultset/ResultSet.d.ts +28 -0
- package/dist/type/resultset/ResultSet.d.ts.map +1 -0
- package/dist/type/unit/Unit.d.ts +13907 -0
- package/dist/type/unit/Unit.d.ts.map +1 -0
- package/dist/type/unit/function/createUnit.d.ts +40 -0
- package/dist/type/unit/function/createUnit.d.ts.map +1 -0
- package/dist/type/unit/function/splitUnit.d.ts +10 -0
- package/dist/type/unit/function/splitUnit.d.ts.map +1 -0
- package/dist/type/unit/function/unit.d.ts +27 -0
- package/dist/type/unit/function/unit.d.ts.map +1 -0
- package/dist/type/unit/physicalConstants.d.ts +89 -0
- package/dist/type/unit/physicalConstants.d.ts.map +1 -0
- package/dist/typed/algebra.d.ts +418 -0
- package/dist/typed/algebra.d.ts.map +1 -0
- package/dist/typed/arithmetic.d.ts +302 -0
- package/dist/typed/arithmetic.d.ts.map +1 -0
- package/dist/typed/bitwise.d.ts +48 -0
- package/dist/typed/bitwise.d.ts.map +1 -0
- package/dist/typed/cas.d.ts +691 -0
- package/dist/typed/cas.d.ts.map +1 -0
- package/dist/typed/combinatorics.d.ts +333 -0
- package/dist/typed/combinatorics.d.ts.map +1 -0
- package/dist/typed/complex.d.ts +91 -0
- package/dist/typed/complex.d.ts.map +1 -0
- package/dist/typed/dist-objects.d.ts +219 -0
- package/dist/typed/dist-objects.d.ts.map +1 -0
- package/dist/typed/distributions.d.ts +247 -0
- package/dist/typed/distributions.d.ts.map +1 -0
- package/dist/typed/geometry.d.ts +329 -0
- package/dist/typed/geometry.d.ts.map +1 -0
- package/dist/typed/gpu.d.ts +62 -0
- package/dist/typed/gpu.d.ts.map +1 -0
- package/dist/typed/graph.d.ts +339 -0
- package/dist/typed/graph.d.ts.map +1 -0
- package/dist/typed/hypothesis.d.ts +274 -0
- package/dist/typed/hypothesis.d.ts.map +1 -0
- package/dist/typed/index.d.ts +299 -0
- package/dist/typed/index.d.ts.map +1 -0
- package/dist/typed/integration.d.ts +219 -0
- package/dist/typed/integration.d.ts.map +1 -0
- package/dist/typed/interpolation.d.ts +189 -0
- package/dist/typed/interpolation.d.ts.map +1 -0
- package/dist/typed/logical.d.ts +87 -0
- package/dist/typed/logical.d.ts.map +1 -0
- package/dist/typed/matrix-ops.d.ts +303 -0
- package/dist/typed/matrix-ops.d.ts.map +1 -0
- package/dist/typed/numeric.d.ts +395 -0
- package/dist/typed/numeric.d.ts.map +1 -0
- package/dist/typed/probability.d.ts +165 -0
- package/dist/typed/probability.d.ts.map +1 -0
- package/dist/typed/relational.d.ts +136 -0
- package/dist/typed/relational.d.ts.map +1 -0
- package/dist/typed/set.d.ts +145 -0
- package/dist/typed/set.d.ts.map +1 -0
- package/dist/typed/signal.d.ts +427 -0
- package/dist/typed/signal.d.ts.map +1 -0
- package/dist/typed/special.d.ts +469 -0
- package/dist/typed/special.d.ts.map +1 -0
- package/dist/typed/statistics.d.ts +174 -0
- package/dist/typed/statistics.d.ts.map +1 -0
- package/dist/typed/string.d.ts +114 -0
- package/dist/typed/string.d.ts.map +1 -0
- package/dist/typed/trigonometry.d.ts +111 -0
- package/dist/typed/trigonometry.d.ts.map +1 -0
- package/dist/typed/typed-bridge.d.ts +6 -0
- package/dist/typed/typed-bridge.d.ts.map +1 -0
- package/dist/typed/unit.d.ts +60 -0
- package/dist/typed/unit.d.ts.map +1 -0
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/unit/to.d.ts +13 -0
- package/dist/unit/to.d.ts.map +1 -0
- package/dist/unit/toBest.d.ts +5 -0
- package/dist/unit/toBest.d.ts.map +1 -0
- package/dist/utils/array.d.ts +249 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/bigint.d.ts +18 -0
- package/dist/utils/bigint.d.ts.map +1 -0
- package/dist/utils/bignumber/bitwise.d.ts +99 -0
- package/dist/utils/bignumber/bitwise.d.ts.map +1 -0
- package/dist/utils/bignumber/constants.d.ts +25 -0
- package/dist/utils/bignumber/constants.d.ts.map +1 -0
- package/dist/utils/bignumber/formatter.d.ts +105 -0
- package/dist/utils/bignumber/formatter.d.ts.map +1 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts +18 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts.map +1 -0
- package/dist/utils/clone.d.ts +7 -0
- package/dist/utils/clone.d.ts.map +1 -0
- package/dist/utils/collection.d.ts +67 -0
- package/dist/utils/collection.d.ts.map +1 -0
- package/dist/utils/complex.d.ts +11 -0
- package/dist/utils/complex.d.ts.map +1 -0
- package/dist/utils/customs.d.ts +51 -0
- package/dist/utils/customs.d.ts.map +1 -0
- package/dist/utils/emitter.d.ts +13 -0
- package/dist/utils/emitter.d.ts.map +1 -0
- package/dist/utils/factory.d.ts +112 -0
- package/dist/utils/factory.d.ts.map +1 -0
- package/dist/utils/function.d.ts +44 -0
- package/dist/utils/function.d.ts.map +1 -0
- package/dist/utils/hasNumericValue.d.ts +8 -0
- package/dist/utils/hasNumericValue.d.ts.map +1 -0
- package/dist/utils/is.d.ts +204 -0
- package/dist/utils/is.d.ts.map +1 -0
- package/dist/utils/isBounded.d.ts +6 -0
- package/dist/utils/isBounded.d.ts.map +1 -0
- package/dist/utils/isFinite.d.ts +10 -0
- package/dist/utils/isFinite.d.ts.map +1 -0
- package/dist/utils/isInteger.d.ts +8 -0
- package/dist/utils/isInteger.d.ts.map +1 -0
- package/dist/utils/isNaN.d.ts +7 -0
- package/dist/utils/isNaN.d.ts.map +1 -0
- package/dist/utils/isNegative.d.ts +9 -0
- package/dist/utils/isNegative.d.ts.map +1 -0
- package/dist/utils/isNumeric.d.ts +6 -0
- package/dist/utils/isNumeric.d.ts.map +1 -0
- package/dist/utils/isPositive.d.ts +9 -0
- package/dist/utils/isPositive.d.ts.map +1 -0
- package/dist/utils/isPrime.d.ts +7 -0
- package/dist/utils/isPrime.d.ts.map +1 -0
- package/dist/utils/isZero.d.ts +8 -0
- package/dist/utils/isZero.d.ts.map +1 -0
- package/dist/utils/log.d.ts +5 -0
- package/dist/utils/log.d.ts.map +1 -0
- package/dist/utils/lruQueue.d.ts +6 -0
- package/dist/utils/lruQueue.d.ts.map +1 -0
- package/dist/utils/map.d.ts +95 -0
- package/dist/utils/map.d.ts.map +1 -0
- package/dist/utils/node.d.ts +2 -0
- package/dist/utils/node.d.ts.map +1 -0
- package/dist/utils/noop.d.ts +6 -0
- package/dist/utils/noop.d.ts.map +1 -0
- package/dist/utils/number.d.ts +314 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/utils/numeric.d.ts +10 -0
- package/dist/utils/numeric.d.ts.map +1 -0
- package/dist/utils/object.d.ts +123 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/optimizeCallback.d.ts +22 -0
- package/dist/utils/optimizeCallback.d.ts.map +1 -0
- package/dist/utils/parseNumber.d.ts +2 -0
- package/dist/utils/parseNumber.d.ts.map +1 -0
- package/dist/utils/print.d.ts +2 -0
- package/dist/utils/print.d.ts.map +1 -0
- package/dist/utils/product.d.ts +6 -0
- package/dist/utils/product.d.ts.map +1 -0
- package/dist/utils/string.d.ts +66 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/switch.d.ts +8 -0
- package/dist/utils/switch.d.ts.map +1 -0
- package/dist/utils/typeOf.d.ts +7 -0
- package/dist/utils/typeOf.d.ts.map +1 -0
- package/dist/wasm/WasmLoader.d.ts +395 -0
- package/dist/wasm/WasmLoader.d.ts.map +1 -0
- package/dist/wasm/bitwise/wasm-bridge.d.ts +65 -0
- package/dist/wasm/bitwise/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/integrity.d.ts +48 -0
- package/dist/wasm/integrity.d.ts.map +1 -0
- package/dist/wasm/interpolation/wasm-bridge.d.ts +95 -0
- package/dist/wasm/interpolation/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/poly/wasm-bridge.d.ts +99 -0
- package/dist/wasm/poly/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/signal/wasm-bridge.d.ts +61 -0
- package/dist/wasm/signal/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/sort/wasm-bridge.d.ts +43 -0
- package/dist/wasm/sort/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/special/wasm-bridge.d.ts +133 -0
- package/dist/wasm/special/wasm-bridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed Probability Distribution Functions
|
|
3
|
+
*
|
|
4
|
+
* Probability density/mass functions and information-theoretic measures
|
|
5
|
+
* using typed-function for runtime dispatch.
|
|
6
|
+
*
|
|
7
|
+
* Each PDF/PMF/CDF has a `Float64Array` overload that evaluates the
|
|
8
|
+
* distribution across a whole sample array, parallelizing large inputs via
|
|
9
|
+
* the worker pool.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Normal (Gaussian) probability density function.
|
|
15
|
+
*
|
|
16
|
+
* PDF(x; mu, sigma) = (1 / (sigma * sqrt(2*pi))) * exp(-(x - mu)^2 / (2*sigma^2))
|
|
17
|
+
*
|
|
18
|
+
* @param x - Value (or Float64Array of values) at which to evaluate
|
|
19
|
+
* @param mu - Mean (default 0)
|
|
20
|
+
* @param sigma - Standard deviation (default 1, must be positive)
|
|
21
|
+
* @returns Probability density at x
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* normalPDF(0) // ~0.3989 (standard normal)
|
|
25
|
+
* normalPDF(1, 0, 2) // ~0.1760
|
|
26
|
+
* normalPDF(new Float64Array([0, 1, 2])) // densities for each sample
|
|
27
|
+
*/
|
|
28
|
+
export declare const normalPDF: import("typed-function").TypedFunction;
|
|
29
|
+
/**
|
|
30
|
+
* Normal (Gaussian) cumulative distribution function.
|
|
31
|
+
*
|
|
32
|
+
* CDF(x; mu, sigma) = 0.5 * (1 + erf((x - mu) / (sigma * sqrt(2))))
|
|
33
|
+
*
|
|
34
|
+
* @param x - Value (or Float64Array of values) at which to evaluate
|
|
35
|
+
* @param mu - Mean (default 0)
|
|
36
|
+
* @param sigma - Standard deviation (default 1, must be positive)
|
|
37
|
+
* @returns Cumulative probability P(X <= x)
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* normalCDF(0) // 0.5 (standard normal)
|
|
41
|
+
* normalCDF(1.96) // ~0.975
|
|
42
|
+
*/
|
|
43
|
+
export declare const normalCDF: import("typed-function").TypedFunction;
|
|
44
|
+
/**
|
|
45
|
+
* Exponential probability density function.
|
|
46
|
+
*
|
|
47
|
+
* PDF(x; lambda) = lambda * exp(-lambda * x) for x >= 0.
|
|
48
|
+
*
|
|
49
|
+
* @param x - Value (or Float64Array of values) at which to evaluate
|
|
50
|
+
* @param lambda - Rate parameter (positive)
|
|
51
|
+
* @returns Probability density at x
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* exponentialPDF(1, 1) // ~0.3679
|
|
55
|
+
*/
|
|
56
|
+
export declare const exponentialPDF: import("typed-function").TypedFunction;
|
|
57
|
+
/**
|
|
58
|
+
* Exponential cumulative distribution function.
|
|
59
|
+
*
|
|
60
|
+
* CDF(x; lambda) = 1 - exp(-lambda * x) for x >= 0.
|
|
61
|
+
*
|
|
62
|
+
* @param x - Value (or Float64Array of values) at which to evaluate
|
|
63
|
+
* @param lambda - Rate parameter (positive)
|
|
64
|
+
* @returns Cumulative probability P(X <= x)
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* exponentialCDF(1, 1) // ~0.6321
|
|
68
|
+
*/
|
|
69
|
+
export declare const exponentialCDF: import("typed-function").TypedFunction;
|
|
70
|
+
/**
|
|
71
|
+
* Poisson probability mass function.
|
|
72
|
+
*
|
|
73
|
+
* PMF(k; lambda) = e^(-lambda) * lambda^k / k!
|
|
74
|
+
*
|
|
75
|
+
* Computed in log-space to avoid overflow for large k or lambda.
|
|
76
|
+
*
|
|
77
|
+
* @param k - Number of events (or Float64Array of counts)
|
|
78
|
+
* @param lambda - Expected number of events (positive)
|
|
79
|
+
* @returns Probability of exactly k events
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* poissonPMF(3, 2.5) // ~0.2138
|
|
83
|
+
*/
|
|
84
|
+
export declare const poissonPMF: import("typed-function").TypedFunction;
|
|
85
|
+
/**
|
|
86
|
+
* Binomial probability mass function.
|
|
87
|
+
*
|
|
88
|
+
* PMF(k; n, p) = C(n, k) * p^k * (1-p)^(n-k)
|
|
89
|
+
*
|
|
90
|
+
* Computed in log-space to avoid overflow.
|
|
91
|
+
*
|
|
92
|
+
* @param k - Number of successes (or Float64Array of counts)
|
|
93
|
+
* @param n - Number of trials (positive integer)
|
|
94
|
+
* @param p - Probability of success (0 <= p <= 1)
|
|
95
|
+
* @returns Probability of exactly k successes
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* binomialPMF(3, 10, 0.5) // ~0.1172
|
|
99
|
+
*/
|
|
100
|
+
export declare const binomialPMF: import("typed-function").TypedFunction;
|
|
101
|
+
/**
|
|
102
|
+
* Geometric probability mass function.
|
|
103
|
+
*
|
|
104
|
+
* PMF(k; p) = (1-p)^(k-1) * p for k = 1, 2, 3, ...
|
|
105
|
+
*
|
|
106
|
+
* @param k - Trial number of first success (or Float64Array of counts)
|
|
107
|
+
* @param p - Probability of success (0 < p <= 1)
|
|
108
|
+
* @returns Probability that first success occurs on trial k
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* geometricPMF(3, 0.5) // 0.125
|
|
112
|
+
*/
|
|
113
|
+
export declare const geometricPMF: import("typed-function").TypedFunction;
|
|
114
|
+
/**
|
|
115
|
+
* Bernoulli probability mass function.
|
|
116
|
+
*
|
|
117
|
+
* PMF(k; p) = p if k = 1, (1 - p) if k = 0.
|
|
118
|
+
*
|
|
119
|
+
* @param k - Outcome (0 or 1, or Float64Array of outcomes)
|
|
120
|
+
* @param p - Probability of success (0 <= p <= 1)
|
|
121
|
+
* @returns Probability of outcome k
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* bernoulliPMF(1, 0.7) // 0.7
|
|
125
|
+
*/
|
|
126
|
+
export declare const bernoulliPMF: import("typed-function").TypedFunction;
|
|
127
|
+
/**
|
|
128
|
+
* Shannon entropy of a discrete probability distribution.
|
|
129
|
+
*
|
|
130
|
+
* H(P) = -sum(p_i * log2(p_i)) for all p_i > 0.
|
|
131
|
+
*
|
|
132
|
+
* @param probs - Array of probabilities (should sum to 1)
|
|
133
|
+
* @returns Entropy in bits
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* entropy([0.5, 0.5]) // 1.0 (maximum for 2 outcomes)
|
|
137
|
+
* entropy([0.25, 0.25, 0.25, 0.25]) // 2.0
|
|
138
|
+
*/
|
|
139
|
+
export declare const entropy: import("typed-function").TypedFunction;
|
|
140
|
+
/**
|
|
141
|
+
* Jensen-Shannon divergence between two probability distributions.
|
|
142
|
+
*
|
|
143
|
+
* JSD(P || Q) = 0.5 * KL(P || M) + 0.5 * KL(Q || M) where M = 0.5*(P + Q).
|
|
144
|
+
*
|
|
145
|
+
* Always non-negative and symmetric. Returns value in bits (base 2).
|
|
146
|
+
*
|
|
147
|
+
* @param p - First probability distribution
|
|
148
|
+
* @param q - Second probability distribution (same length as p)
|
|
149
|
+
* @returns Jensen-Shannon divergence in bits
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* jsDivergence([0.5, 0.5], [0.5, 0.5]) // 0 (identical)
|
|
153
|
+
* jsDivergence([1, 0], [0, 1]) // 1.0 (maximum for 2 bins)
|
|
154
|
+
*/
|
|
155
|
+
export declare const jsDivergence: import("typed-function").TypedFunction;
|
|
156
|
+
/**
|
|
157
|
+
* Beta probability density function.
|
|
158
|
+
*
|
|
159
|
+
* f(x; α, β) = x^(α-1) · (1-x)^(β-1) / B(α, β), x ∈ (0, 1).
|
|
160
|
+
*
|
|
161
|
+
* When x is a Float64Array of length ≥ WASM_SPECIAL_THRESHOLD (1024),
|
|
162
|
+
* lgamma is computed in a single vectorised WASM dispatch over the array
|
|
163
|
+
* instead of per-element scalar calls.
|
|
164
|
+
*
|
|
165
|
+
* @param x - Sample value(s) in (0, 1)
|
|
166
|
+
* @param alpha - Shape parameter α > 0
|
|
167
|
+
* @param beta_ - Shape parameter β > 0
|
|
168
|
+
* @returns PDF value(s)
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* betaPDF(0.5, 2, 2) // 1.5
|
|
172
|
+
*/
|
|
173
|
+
export declare const betaPDF: import("typed-function").TypedFunction;
|
|
174
|
+
/**
|
|
175
|
+
* Gamma probability density function.
|
|
176
|
+
*
|
|
177
|
+
* f(x; k, θ) = x^(k-1) · exp(−x/θ) / (Γ(k) · θ^k), x > 0.
|
|
178
|
+
*
|
|
179
|
+
* When x is a Float64Array of length ≥ WASM_SPECIAL_THRESHOLD (1024),
|
|
180
|
+
* lgamma(shape) is pre-computed once (scalar), sparing per-element Γ calls.
|
|
181
|
+
*
|
|
182
|
+
* @param x - Sample value(s)
|
|
183
|
+
* @param shape - Shape parameter k > 0
|
|
184
|
+
* @param scale - Scale parameter θ > 0
|
|
185
|
+
* @returns PDF value(s)
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* gammaPDF(1, 1, 1) // ~0.3679 (Exponential(1) at x=1)
|
|
189
|
+
*/
|
|
190
|
+
export declare const gammaPDF: import("typed-function").TypedFunction;
|
|
191
|
+
/**
|
|
192
|
+
* Student-t probability density function.
|
|
193
|
+
*
|
|
194
|
+
* f(x; ν) = Γ((ν+1)/2) / (√(νπ)·Γ(ν/2)) · (1 + x²/ν)^(−(ν+1)/2).
|
|
195
|
+
*
|
|
196
|
+
* When x is a Float64Array of length ≥ WASM_SPECIAL_THRESHOLD (1024),
|
|
197
|
+
* the two lgamma calls for the normalisation constant are performed once
|
|
198
|
+
* on the main thread; only the per-element `(1 + x²/ν)` power is looped.
|
|
199
|
+
*
|
|
200
|
+
* @param x - Sample value(s)
|
|
201
|
+
* @param df - Degrees of freedom ν > 0
|
|
202
|
+
* @returns PDF value(s)
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* studentTPDF(0, 5) // ~0.3796 (peak of t(5))
|
|
206
|
+
*/
|
|
207
|
+
export declare const studentTPDF: import("typed-function").TypedFunction;
|
|
208
|
+
/**
|
|
209
|
+
* Noncentral chi-squared probability density function.
|
|
210
|
+
*
|
|
211
|
+
* f(x; k, λ) via Poisson-mixture of central chi-squared densities.
|
|
212
|
+
*
|
|
213
|
+
* When x is a Float64Array of length ≥ WASM_SPECIAL_THRESHOLD (1024),
|
|
214
|
+
* lgamma in the inner Bessel sum is vectorised via `lgammaDispatch` over
|
|
215
|
+
* the unique m values needed; for the outer product loop each element is
|
|
216
|
+
* still evaluated independently (the lgamma argument depends on both j and
|
|
217
|
+
* the fixed df, not on x[i], so the per-element work remains O(terms)).
|
|
218
|
+
*
|
|
219
|
+
* @param x - Sample value(s)
|
|
220
|
+
* @param df - Degrees of freedom k > 0
|
|
221
|
+
* @param ncp - Non-centrality parameter λ ≥ 0
|
|
222
|
+
* @returns PDF value(s)
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* noncentralChi2PDF(1, 2, 1) // ~0.2220
|
|
226
|
+
*/
|
|
227
|
+
export declare const noncentralChi2PDF: import("typed-function").TypedFunction;
|
|
228
|
+
/**
|
|
229
|
+
* All typed probability distribution functions.
|
|
230
|
+
*/
|
|
231
|
+
export declare const typedDistributions: {
|
|
232
|
+
normalPDF: import("typed-function").TypedFunction;
|
|
233
|
+
normalCDF: import("typed-function").TypedFunction;
|
|
234
|
+
exponentialPDF: import("typed-function").TypedFunction;
|
|
235
|
+
exponentialCDF: import("typed-function").TypedFunction;
|
|
236
|
+
poissonPMF: import("typed-function").TypedFunction;
|
|
237
|
+
binomialPMF: import("typed-function").TypedFunction;
|
|
238
|
+
geometricPMF: import("typed-function").TypedFunction;
|
|
239
|
+
bernoulliPMF: import("typed-function").TypedFunction;
|
|
240
|
+
entropy: import("typed-function").TypedFunction;
|
|
241
|
+
jsDivergence: import("typed-function").TypedFunction;
|
|
242
|
+
betaPDF: import("typed-function").TypedFunction;
|
|
243
|
+
gammaPDF: import("typed-function").TypedFunction;
|
|
244
|
+
studentTPDF: import("typed-function").TypedFunction;
|
|
245
|
+
noncentralChi2PDF: import("typed-function").TypedFunction;
|
|
246
|
+
};
|
|
247
|
+
//# sourceMappingURL=distributions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributions.d.ts","sourceRoot":"","sources":["../../src/typed/distributions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA+LH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,SAAS,wCAepB,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,wCAepB,CAAC;AAMH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,wCAQzB,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,wCAQzB,CAAC;AAMH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,wCAQrB,CAAC;AAMH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,wCAYtB,CAAC;AAMH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,wCAQvB,CAAC;AAMH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,wCAQvB,CAAC;AAMH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,wCAWlB,CAAC;AAMH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,wCAcvB,CAAC;AAmBH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,wCAkClB,CAAC;AAmBH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,wCAwBnB,CAAC;AAkBH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,wCAatB,CAAC;AAyCH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,wCA4C5B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAe9B,CAAC"}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed Geometry Functions
|
|
3
|
+
*
|
|
4
|
+
* Pure TypeScript implementations of geometric operations including
|
|
5
|
+
* angles, products, areas, spatial queries, transforms, distances,
|
|
6
|
+
* and intersections. Includes optional WASM acceleration for
|
|
7
|
+
* Delaunay triangulation, Voronoi diagrams, and k-d tree operations.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
type f64 = number;
|
|
12
|
+
type i32 = number;
|
|
13
|
+
/**
|
|
14
|
+
* Compute the angle (in radians) between two 2D vectors.
|
|
15
|
+
*
|
|
16
|
+
* @param v1 - First 2D vector
|
|
17
|
+
* @param v2 - Second 2D vector
|
|
18
|
+
* @returns Angle in radians [0, pi]
|
|
19
|
+
*/
|
|
20
|
+
export declare function angle2D(v1: number[], v2: number[]): f64;
|
|
21
|
+
/**
|
|
22
|
+
* Compute the angle (in radians) between two 3D vectors.
|
|
23
|
+
*
|
|
24
|
+
* @param v1 - First 3D vector
|
|
25
|
+
* @param v2 - Second 3D vector
|
|
26
|
+
* @returns Angle in radians [0, pi]
|
|
27
|
+
*/
|
|
28
|
+
export declare function angle3D(v1: number[], v2: number[]): f64;
|
|
29
|
+
/**
|
|
30
|
+
* Compute the cross product of two 3D vectors.
|
|
31
|
+
*
|
|
32
|
+
* @param a - First 3D vector
|
|
33
|
+
* @param b - Second 3D vector
|
|
34
|
+
* @returns Cross product vector
|
|
35
|
+
*/
|
|
36
|
+
export declare function cross3D(a: number[], b: number[]): number[];
|
|
37
|
+
/**
|
|
38
|
+
* Compute the dot product of two 3D vectors.
|
|
39
|
+
*
|
|
40
|
+
* @param a - First 3D vector
|
|
41
|
+
* @param b - Second 3D vector
|
|
42
|
+
* @returns Dot product scalar
|
|
43
|
+
*/
|
|
44
|
+
export declare function dot3D(a: number[], b: number[]): f64;
|
|
45
|
+
/**
|
|
46
|
+
* Compute the area of a triangle given three 2D vertices using the shoelace formula.
|
|
47
|
+
*
|
|
48
|
+
* @param a - First vertex [x, y]
|
|
49
|
+
* @param b - Second vertex [x, y]
|
|
50
|
+
* @param c - Third vertex [x, y]
|
|
51
|
+
* @returns Unsigned area of the triangle
|
|
52
|
+
*/
|
|
53
|
+
export declare function triangleArea(a: number[], b: number[], c: number[]): f64;
|
|
54
|
+
/**
|
|
55
|
+
* Compute the area of a simple polygon given its vertices (2D) using the shoelace formula.
|
|
56
|
+
* Vertices should be ordered (clockwise or counter-clockwise).
|
|
57
|
+
*
|
|
58
|
+
* @param vertices - Array of [x, y] vertices
|
|
59
|
+
* @returns Unsigned area of the polygon
|
|
60
|
+
*/
|
|
61
|
+
export declare function polygonArea(vertices: number[][]): f64;
|
|
62
|
+
/**
|
|
63
|
+
* Compute the convex hull of a set of 2D points using Andrew's monotone chain algorithm.
|
|
64
|
+
* Returns vertices in counter-clockwise order.
|
|
65
|
+
*
|
|
66
|
+
* @param points - Array of [x, y] points
|
|
67
|
+
* @returns Convex hull vertices in CCW order
|
|
68
|
+
*/
|
|
69
|
+
export declare function convexHull(points: number[][]): number[][];
|
|
70
|
+
/**
|
|
71
|
+
* Determine if a 2D point lies inside a polygon using the ray casting algorithm.
|
|
72
|
+
*
|
|
73
|
+
* @param point - The test point [x, y]
|
|
74
|
+
* @param polygon - Array of polygon vertices [x, y]
|
|
75
|
+
* @returns true if point is inside the polygon
|
|
76
|
+
*/
|
|
77
|
+
export declare function pointInPolygon(point: number[], polygon: number[][]): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Rotate a 2D vector by a given angle (radians).
|
|
80
|
+
*
|
|
81
|
+
* @param v - The 2D vector [x, y]
|
|
82
|
+
* @param angle - Rotation angle in radians
|
|
83
|
+
* @returns Rotated vector
|
|
84
|
+
*/
|
|
85
|
+
export declare function rotateVector2D(v: number[], angle: f64): number[];
|
|
86
|
+
/**
|
|
87
|
+
* Rotate a 3D vector around an arbitrary axis by a given angle (Rodrigues' formula).
|
|
88
|
+
*
|
|
89
|
+
* @param v - The 3D vector
|
|
90
|
+
* @param axis - The rotation axis (will be normalized)
|
|
91
|
+
* @param angle - Rotation angle in radians
|
|
92
|
+
* @returns Rotated vector
|
|
93
|
+
*/
|
|
94
|
+
export declare function rotateVector3D(v: number[], axis: number[], angle: f64): number[];
|
|
95
|
+
/**
|
|
96
|
+
* Reflect a vector across a plane defined by its normal.
|
|
97
|
+
*
|
|
98
|
+
* @param v - The vector to reflect
|
|
99
|
+
* @param normal - The normal of the reflection plane (will be normalized)
|
|
100
|
+
* @returns Reflected vector
|
|
101
|
+
*/
|
|
102
|
+
export declare function reflectVector(v: number[], normal: number[]): number[];
|
|
103
|
+
/**
|
|
104
|
+
* Project vector v onto vector onto.
|
|
105
|
+
*
|
|
106
|
+
* @param v - The vector to project
|
|
107
|
+
* @param onto - The vector to project onto
|
|
108
|
+
* @returns Projected vector
|
|
109
|
+
*/
|
|
110
|
+
export declare function projectVector(v: number[], onto: number[]): number[];
|
|
111
|
+
/**
|
|
112
|
+
* Euclidean distance between two 2D points.
|
|
113
|
+
*/
|
|
114
|
+
export declare function distance2D(a: number[], b: number[]): f64;
|
|
115
|
+
/**
|
|
116
|
+
* Euclidean distance between two 3D points.
|
|
117
|
+
*/
|
|
118
|
+
export declare function distance3D(a: number[], b: number[]): f64;
|
|
119
|
+
/**
|
|
120
|
+
* Euclidean distance between two N-dimensional points.
|
|
121
|
+
*/
|
|
122
|
+
export declare function distanceND(a: number[], b: number[]): f64;
|
|
123
|
+
/**
|
|
124
|
+
* Shortest distance from a point to a line segment in 2D.
|
|
125
|
+
*
|
|
126
|
+
* @param point - The point [x, y]
|
|
127
|
+
* @param lineStart - Start of the line segment [x, y]
|
|
128
|
+
* @param lineEnd - End of the line segment [x, y]
|
|
129
|
+
* @returns Distance from point to the line segment
|
|
130
|
+
*/
|
|
131
|
+
export declare function distancePointToLine2D(point: number[], lineStart: number[], lineEnd: number[]): f64;
|
|
132
|
+
/**
|
|
133
|
+
* Find the intersection point of two infinite 2D lines.
|
|
134
|
+
* Each line is defined by a point and a direction vector.
|
|
135
|
+
*
|
|
136
|
+
* @param p1 - Point on line 1
|
|
137
|
+
* @param d1 - Direction of line 1
|
|
138
|
+
* @param p2 - Point on line 2
|
|
139
|
+
* @param d2 - Direction of line 2
|
|
140
|
+
* @returns Intersection point [x, y] or null if parallel
|
|
141
|
+
*/
|
|
142
|
+
export declare function intersectLines2D(p1: number[], d1: number[], p2: number[], d2: number[]): number[] | null;
|
|
143
|
+
/**
|
|
144
|
+
* Find the intersection point of two 2D line segments.
|
|
145
|
+
*
|
|
146
|
+
* @param a1 - Start of segment A
|
|
147
|
+
* @param a2 - End of segment A
|
|
148
|
+
* @param b1 - Start of segment B
|
|
149
|
+
* @param b2 - End of segment B
|
|
150
|
+
* @returns Intersection point [x, y] or null if segments do not intersect
|
|
151
|
+
*/
|
|
152
|
+
export declare function intersectSegments2D(a1: number[], a2: number[], b1: number[], b2: number[]): number[] | null;
|
|
153
|
+
/**
|
|
154
|
+
* Shape type for area calculation.
|
|
155
|
+
*/
|
|
156
|
+
export type Shape = {
|
|
157
|
+
type: 'circle';
|
|
158
|
+
radius: f64;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'triangle';
|
|
161
|
+
vertices: [number[], number[], number[]];
|
|
162
|
+
} | {
|
|
163
|
+
type: 'polygon';
|
|
164
|
+
vertices: number[][];
|
|
165
|
+
} | {
|
|
166
|
+
type: 'rectangle';
|
|
167
|
+
width: f64;
|
|
168
|
+
height: f64;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Compute the area of a shape.
|
|
172
|
+
*
|
|
173
|
+
* @param shape - Shape descriptor
|
|
174
|
+
* @returns Area
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* area({ type: 'circle', radius: 1 }) // => pi
|
|
178
|
+
* area({ type: 'rectangle', width: 3, height: 4 }) // => 12
|
|
179
|
+
*/
|
|
180
|
+
export declare function area(shape: Shape): f64;
|
|
181
|
+
/**
|
|
182
|
+
* Compute the centroid of a polygon.
|
|
183
|
+
*
|
|
184
|
+
* @param vertices - Array of [x, y] vertices in order
|
|
185
|
+
* @returns Centroid [x, y]
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* centroid([[0,0], [4,0], [4,3], [0,3]]) // => [2, 1.5]
|
|
189
|
+
*/
|
|
190
|
+
export declare function centroid(vertices: number[][]): number[];
|
|
191
|
+
/**
|
|
192
|
+
* Convert between coordinate systems.
|
|
193
|
+
*
|
|
194
|
+
* @param point - Input coordinates
|
|
195
|
+
* @param from - Source system: 'cartesian' | 'polar' | 'spherical' | 'cylindrical'
|
|
196
|
+
* @param to - Target system
|
|
197
|
+
* @returns Converted coordinates
|
|
198
|
+
*/
|
|
199
|
+
export declare function coordinateTransform(point: number[], from: 'cartesian' | 'polar' | 'spherical' | 'cylindrical', to: 'cartesian' | 'polar' | 'spherical' | 'cylindrical'): number[];
|
|
200
|
+
/**
|
|
201
|
+
* Perimeter of a polygon.
|
|
202
|
+
*
|
|
203
|
+
* @param vertices - Array of [x, y] vertices in order
|
|
204
|
+
* @returns Perimeter length
|
|
205
|
+
*/
|
|
206
|
+
export declare function polygonPerimeter(vertices: number[][]): f64;
|
|
207
|
+
/**
|
|
208
|
+
* Manhattan (L1) distance between two points.
|
|
209
|
+
*
|
|
210
|
+
* @param a - First point
|
|
211
|
+
* @param b - Second point
|
|
212
|
+
* @returns L1 distance
|
|
213
|
+
*/
|
|
214
|
+
export declare function manhattanDistance(a: number[], b: number[]): f64;
|
|
215
|
+
/**
|
|
216
|
+
* Chebyshev (L-infinity) distance between two points.
|
|
217
|
+
*
|
|
218
|
+
* @param a - First point
|
|
219
|
+
* @param b - Second point
|
|
220
|
+
* @returns L-infinity distance
|
|
221
|
+
*/
|
|
222
|
+
export declare function chebyshevDistance(a: number[], b: number[]): f64;
|
|
223
|
+
/**
|
|
224
|
+
* Minkowski (Lp) distance between two points.
|
|
225
|
+
*
|
|
226
|
+
* @param a - First point
|
|
227
|
+
* @param b - Second point
|
|
228
|
+
* @param p - Distance order (p >= 1)
|
|
229
|
+
* @returns Lp distance
|
|
230
|
+
*/
|
|
231
|
+
export declare function minkowskiDistance(a: number[], b: number[], p: f64): f64;
|
|
232
|
+
/**
|
|
233
|
+
* Delaunay triangulation using Bowyer-Watson algorithm.
|
|
234
|
+
*
|
|
235
|
+
* @param points - Array of [x, y] points
|
|
236
|
+
* @returns Array of triangles, each an array of 3 point indices
|
|
237
|
+
*/
|
|
238
|
+
export declare function delaunayTriangulation(points: number[][]): number[][];
|
|
239
|
+
/**
|
|
240
|
+
* Voronoi diagram from Delaunay triangulation (dual graph).
|
|
241
|
+
* Returns Voronoi vertices and regions.
|
|
242
|
+
*
|
|
243
|
+
* @param points - Array of [x, y] points
|
|
244
|
+
* @param bounds - Clipping bounds [minX, minY, maxX, maxY]
|
|
245
|
+
* @returns { vertices: number[][], regions: number[][] }
|
|
246
|
+
*/
|
|
247
|
+
export declare function voronoiDiagram(points: number[][], bounds: [f64, f64, f64, f64]): {
|
|
248
|
+
vertices: number[][];
|
|
249
|
+
regions: number[][];
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* K-d tree node.
|
|
253
|
+
*/
|
|
254
|
+
export interface KDTreeNode {
|
|
255
|
+
point: number[];
|
|
256
|
+
index: i32;
|
|
257
|
+
left: KDTreeNode | null;
|
|
258
|
+
right: KDTreeNode | null;
|
|
259
|
+
axis: i32;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Build a k-d tree for spatial queries.
|
|
263
|
+
*
|
|
264
|
+
* @param points - Array of points (each same dimensionality)
|
|
265
|
+
* @returns Root node of the k-d tree
|
|
266
|
+
*/
|
|
267
|
+
export declare function kdTree(points: number[][]): KDTreeNode | null;
|
|
268
|
+
/**
|
|
269
|
+
* Find the nearest neighbor in a k-d tree.
|
|
270
|
+
*
|
|
271
|
+
* @param root - K-d tree root
|
|
272
|
+
* @param target - Query point
|
|
273
|
+
* @returns { point, index, distance }
|
|
274
|
+
*/
|
|
275
|
+
export declare function kdTreeNearest(root: KDTreeNode | null, target: number[]): {
|
|
276
|
+
point: number[];
|
|
277
|
+
index: i32;
|
|
278
|
+
distance: f64;
|
|
279
|
+
} | null;
|
|
280
|
+
/**
|
|
281
|
+
* One-shot nearest-neighbor search: builds a k-d tree and queries it.
|
|
282
|
+
* Uses WASM acceleration for large point sets.
|
|
283
|
+
*
|
|
284
|
+
* @param points - Array of points (each same dimensionality)
|
|
285
|
+
* @param query - Query point
|
|
286
|
+
* @returns { point, index, distance } of the nearest neighbor, or null
|
|
287
|
+
*/
|
|
288
|
+
export declare function nearestNeighbor(points: number[][], query: number[]): {
|
|
289
|
+
point: number[];
|
|
290
|
+
index: i32;
|
|
291
|
+
distance: f64;
|
|
292
|
+
} | null;
|
|
293
|
+
/**
|
|
294
|
+
* Represents a triangular face of a 3-D convex hull as three vertex indices
|
|
295
|
+
* into the input point array. The vertices are in counter-clockwise order
|
|
296
|
+
* when viewed from outside the hull.
|
|
297
|
+
*/
|
|
298
|
+
export type HullFace3D = [i32, i32, i32];
|
|
299
|
+
/**
|
|
300
|
+
* Compute the 3-D convex hull of a set of points using QuickHull (incremental
|
|
301
|
+
* variant — Barber, Dobkin, Huhdanpaa 1996).
|
|
302
|
+
*
|
|
303
|
+
* Point sets with ≥ 1024 points are dispatched to the Rust WASM kernel;
|
|
304
|
+
* smaller sets use a pure-TypeScript fallback with the same algorithm.
|
|
305
|
+
*
|
|
306
|
+
* @param points - Array of 3-D points, each `[x, y, z]`.
|
|
307
|
+
* @returns Array of triangular faces. Each face is `[i, j, k]` where i/j/k
|
|
308
|
+
* are indices into `points`, oriented CCW from outside.
|
|
309
|
+
* @throws {Error} When the input is degenerate (fewer than 4 non-coplanar points).
|
|
310
|
+
*/
|
|
311
|
+
export declare function convexHull3D(points: number[][]): HullFace3D[];
|
|
312
|
+
/**
|
|
313
|
+
* Compute the all-pairs Euclidean distance matrix for a set of points.
|
|
314
|
+
*
|
|
315
|
+
* Returns the symmetric `n x n` matrix whose entry `(i, j)` is the Euclidean
|
|
316
|
+
* distance between point `i` and point `j`. Every output row is independent, so
|
|
317
|
+
* large point sets are computed across the worker pool; small sets — or an
|
|
318
|
+
* uninitialized pool — fall back to a sequential computation.
|
|
319
|
+
*
|
|
320
|
+
* @param points - Array of `n` points, each a coordinate array of equal length
|
|
321
|
+
* @returns `n x n` distance matrix
|
|
322
|
+
*
|
|
323
|
+
* @example
|
|
324
|
+
* await distanceMatrix([[0, 0], [3, 0], [0, 4]])
|
|
325
|
+
* // [[0, 3, 4], [3, 0, 5], [4, 5, 0]]
|
|
326
|
+
*/
|
|
327
|
+
export declare function distanceMatrix(points: number[][]): Promise<number[][]>;
|
|
328
|
+
export {};
|
|
329
|
+
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../src/typed/geometry.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebGPU-Accelerated Matrix Operations
|
|
3
|
+
*
|
|
4
|
+
* Thin wrappers over the matrix package's WebGPU backend. Each function runs
|
|
5
|
+
* its core operation on the GPU via compute shaders when a WebGPU device is
|
|
6
|
+
* available and the matrix is large enough to amortize the dispatch cost;
|
|
7
|
+
* otherwise it transparently falls back to the sequential CPU implementation.
|
|
8
|
+
*
|
|
9
|
+
* Precision note: WebGPU shaders operate in 32-bit float (WGSL has no f64), so
|
|
10
|
+
* results carry f32 precision (~7 significant digits) — unlike the f64 CPU
|
|
11
|
+
* path. Use these functions when throughput on large matrices matters more
|
|
12
|
+
* than precision; use the standard `multiply` / `transpose` for full f64
|
|
13
|
+
* accuracy.
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
import type { DenseMatrix } from '@danielsimonjr/mathts-matrix';
|
|
18
|
+
/**
|
|
19
|
+
* Matrix multiplication on the WebGPU backend.
|
|
20
|
+
*
|
|
21
|
+
* Runs a WGSL compute shader when a WebGPU device is available and the product
|
|
22
|
+
* is large enough to be worth the dispatch; otherwise falls back to the CPU
|
|
23
|
+
* matrix product.
|
|
24
|
+
*
|
|
25
|
+
* @param a - Left matrix (m × k)
|
|
26
|
+
* @param b - Right matrix (k × n)
|
|
27
|
+
* @returns Product matrix (m × n); f32 precision on the GPU path
|
|
28
|
+
*/
|
|
29
|
+
export declare function gpuMatmul(a: DenseMatrix, b: DenseMatrix): Promise<DenseMatrix>;
|
|
30
|
+
/**
|
|
31
|
+
* Matrix addition on the WebGPU backend.
|
|
32
|
+
*
|
|
33
|
+
* Runs a WGSL compute shader when a WebGPU device is available and the matrix
|
|
34
|
+
* is large enough; otherwise falls back to the CPU element-wise sum.
|
|
35
|
+
*
|
|
36
|
+
* @param a - First matrix
|
|
37
|
+
* @param b - Second matrix (same shape as `a`)
|
|
38
|
+
* @returns Element-wise sum; f32 precision on the GPU path
|
|
39
|
+
*/
|
|
40
|
+
export declare function gpuAdd(a: DenseMatrix, b: DenseMatrix): Promise<DenseMatrix>;
|
|
41
|
+
/**
|
|
42
|
+
* Matrix transpose on the WebGPU backend.
|
|
43
|
+
*
|
|
44
|
+
* Runs a WGSL compute shader when a WebGPU device is available and the matrix
|
|
45
|
+
* is large enough; otherwise falls back to the CPU transpose.
|
|
46
|
+
*
|
|
47
|
+
* @param a - Matrix to transpose
|
|
48
|
+
* @returns Transposed matrix; f32 precision on the GPU path
|
|
49
|
+
*/
|
|
50
|
+
export declare function gpuTranspose(a: DenseMatrix): Promise<DenseMatrix>;
|
|
51
|
+
/**
|
|
52
|
+
* Scalar multiplication on the WebGPU backend.
|
|
53
|
+
*
|
|
54
|
+
* Runs a WGSL compute shader when a WebGPU device is available and the matrix
|
|
55
|
+
* is large enough; otherwise falls back to the CPU scale.
|
|
56
|
+
*
|
|
57
|
+
* @param a - Matrix to scale
|
|
58
|
+
* @param scalar - Scalar multiplier
|
|
59
|
+
* @returns Scaled matrix; f32 precision on the GPU path
|
|
60
|
+
*/
|
|
61
|
+
export declare function gpuScale(a: DenseMatrix, scalar: number): Promise<DenseMatrix>;
|
|
62
|
+
//# sourceMappingURL=gpu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gpu.d.ts","sourceRoot":"","sources":["../../src/typed/gpu.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAShE;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAGpF;AAED;;;;;;;;;GASG;AACH,wBAAsB,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAGjF;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAGvE;AAED;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAGnF"}
|