data-structure-typed 1.36.7 → 1.36.8

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.
@@ -1,21 +0,0 @@
1
- const orderReducedBy = 2; // reduction of magnitude's order compared to the baseline magnitude
2
-
3
- export const magnitude = {
4
- CONSTANT: Math.floor(Number.MAX_SAFE_INTEGER / Math.pow(10, orderReducedBy)),
5
- LOG_N: Math.pow(10, 9 - orderReducedBy),
6
- LINEAR: Math.pow(10, 6 - orderReducedBy),
7
- N_LOG_N: Math.pow(10, 5 - orderReducedBy),
8
- SQUARED: Math.pow(10, 4 - orderReducedBy),
9
- CUBED: Math.pow(10, 3 - orderReducedBy),
10
- FACTORIAL: 20 - orderReducedBy
11
- };
12
-
13
- export const bigO = {
14
- CONSTANT: magnitude.CONSTANT / 100000,
15
- LOG_N: Math.log2(magnitude.LOG_N) / 1000,
16
- LINEAR: magnitude.LINEAR / 1000,
17
- N_LOG_N: (magnitude.N_LOG_N * Math.log2(magnitude.LOG_N)) / 1000,
18
- SQUARED: Math.pow(magnitude.SQUARED, 2) / 1000,
19
- CUBED: Math.pow(magnitude.SQUARED, 3) / 1000,
20
- FACTORIAL: 10000
21
- };