extra-math 1.3.36 → 1.3.37
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/index.d.ts +1 -1
- package/index.js +2 -0
- package/index.mjs +1 -1
- package/package.json +3 -1
package/index.d.ts
CHANGED
|
@@ -436,4 +436,4 @@ declare function magnitude(xs: number[]): number;
|
|
|
436
436
|
|
|
437
437
|
declare function distance(xs: number[], ys: number[]): number;
|
|
438
438
|
|
|
439
|
-
export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, round, roundDiv, sum, variance };
|
|
439
|
+
export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, arithmeticMean as mean, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, quadriaticMean as rootMeanSquare, round, roundDiv, sum, variance };
|
package/index.js
CHANGED
|
@@ -266,6 +266,7 @@ exports.lerp = lerp;
|
|
|
266
266
|
exports.log = log;
|
|
267
267
|
exports.magnitude = magnitude;
|
|
268
268
|
exports.map = remap;
|
|
269
|
+
exports.mean = arithmeticMean;
|
|
269
270
|
exports.median = median;
|
|
270
271
|
exports.mod = mod;
|
|
271
272
|
exports.modes = modes;
|
|
@@ -283,6 +284,7 @@ exports.range = range;
|
|
|
283
284
|
exports.rem = rem;
|
|
284
285
|
exports.remap = remap;
|
|
285
286
|
exports.root = root;
|
|
287
|
+
exports.rootMeanSquare = quadriaticMean;
|
|
286
288
|
exports.round = round;
|
|
287
289
|
exports.roundDiv = roundDiv;
|
|
288
290
|
exports.sum = sum;
|
package/index.mjs
CHANGED
|
@@ -238,4 +238,4 @@ function distance(xs, ys) {
|
|
|
238
238
|
return Math.sqrt(a);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, round, roundDiv, sum, variance };
|
|
241
|
+
export { aliquotSum, arithmeticMean, binomial, ceil, ceilDiv, constrain as clamp, constrain, cubicMean, degrees, distance, factorial, floor, floorDiv, gcd, geometricMean, harmonicMean, gcd as hcf, isPow, isPrime, lcm, lerp, log, magnitude, remap as map, arithmeticMean as mean, median, mod, modes, modp, multinomial, nextPow, normalize as norm, normalize, prevPow, product, properDivisors, quadriaticMean, radians, range, rem, remap, root, quadriaticMean as rootMeanSquare, round, roundDiv, sum, variance };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extra-math",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.37",
|
|
4
4
|
"description": "A collection of common mathematical functions.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"clamp",
|
|
22
22
|
"hcf",
|
|
23
23
|
"map",
|
|
24
|
+
"mean",
|
|
24
25
|
"norm",
|
|
26
|
+
"rootMeanSquare",
|
|
25
27
|
"aliquotSum",
|
|
26
28
|
"arithmeticMean",
|
|
27
29
|
"binomial",
|