@iyulab/u-doe 0.7.0 → 0.8.1
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 +16 -1
- package/node/u_doe.cjs +74 -47
- package/node/u_doe.d.cts +17 -0
- package/node/u_doe_bg.wasm +0 -0
- package/package.json +1 -1
- package/u_doe.d.ts +17 -0
- package/u_doe.js +1 -1
- package/u_doe_bg.js +73 -47
- package/u_doe_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -106,7 +106,7 @@ println!("Required replicates: {n}");
|
|
|
106
106
|
| Design | Function | Use Case |
|
|
107
107
|
|--------|----------|----------|
|
|
108
108
|
| Full Factorial | `full_factorial(k)` | k = 2..7, all factor combinations |
|
|
109
|
-
| Fractional Factorial | `fractional_factorial(k, p)` | Screening, k=
|
|
109
|
+
| Fractional Factorial | `fractional_factorial(k, p)` | Screening, k=4..7, p=1..3 |
|
|
110
110
|
| Plackett-Burman | `plackett_burman(k)` | Screening, k ≤ 19, N = 8/12/16/20 |
|
|
111
111
|
| CCD | `ccd(k, alpha, n_center)` | RSM, k = 2..6 |
|
|
112
112
|
| Box-Behnken | `box_behnken(k, n_center)` | RSM, k = 3/4/5 |
|
|
@@ -157,6 +157,21 @@ Generate a 2^k full factorial design (k = 1..7).
|
|
|
157
157
|
|
|
158
158
|
Generate a 2^(k-p) fractional factorial design (k = 4..7, p = 1..3).
|
|
159
159
|
|
|
160
|
+
#### `fractional_factorial_info(k, p) -> FractionalInfo`
|
|
161
|
+
|
|
162
|
+
Metadata for the fraction `fractional_factorial(k, p)` emits: resolution, defining relation, and generator equations. Use it to derive the alias structure of the design you actually received instead of pairing the matrix with an external published table.
|
|
163
|
+
|
|
164
|
+
**Output:**
|
|
165
|
+
```json
|
|
166
|
+
{
|
|
167
|
+
"k": 7,
|
|
168
|
+
"p": 3,
|
|
169
|
+
"resolution": "IV",
|
|
170
|
+
"defining_relation": "I=ABCE=BCDF=ACDG=ADEF=BDEG=ABFG=CEFG",
|
|
171
|
+
"generators": ["E=ABC", "F=BCD", "G=ACD"]
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
160
175
|
#### `plackett_burman(k) -> DesignMatrix`
|
|
161
176
|
|
|
162
177
|
Generate a Plackett-Burman screening design (k = 1..19).
|
package/node/u_doe.cjs
CHANGED
|
@@ -219,6 +219,33 @@ function fractional_factorial(k, p) {
|
|
|
219
219
|
}
|
|
220
220
|
exports.fractional_factorial = fractional_factorial;
|
|
221
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Metadata for a 2^(k-p) fractional factorial design: resolution, defining
|
|
224
|
+
* relation, and generator equations of the fraction `fractional_factorial(k, p)`
|
|
225
|
+
* actually emits — lets consumers derive the alias structure without pairing
|
|
226
|
+
* the design with an external published table.
|
|
227
|
+
*
|
|
228
|
+
* Returns `{ k: usize, p: usize, resolution: "III"|"IV"|"V",
|
|
229
|
+
* defining_relation: str, generators: [str] }` —
|
|
230
|
+
* e.g. `{ k: 7, p: 3, resolution: "IV",
|
|
231
|
+
* defining_relation: "I=ABCE=BCDF=ACDG=ADEF=BDEG=ABFG=CEFG",
|
|
232
|
+
* generators: ["E=ABC", "F=BCD", "G=ACD"] }`.
|
|
233
|
+
*
|
|
234
|
+
* # Errors
|
|
235
|
+
* Returns an error string if the (k, p) combination is not in the standard table.
|
|
236
|
+
* @param {number} k
|
|
237
|
+
* @param {number} p
|
|
238
|
+
* @returns {any}
|
|
239
|
+
*/
|
|
240
|
+
function fractional_factorial_info(k, p) {
|
|
241
|
+
const ret = wasm.fractional_factorial_info(k, p);
|
|
242
|
+
if (ret[2]) {
|
|
243
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
244
|
+
}
|
|
245
|
+
return takeFromExternrefTable0(ret[0]);
|
|
246
|
+
}
|
|
247
|
+
exports.fractional_factorial_info = fractional_factorial_info;
|
|
248
|
+
|
|
222
249
|
/**
|
|
223
250
|
* Generate a 2^k full factorial design.
|
|
224
251
|
*
|
|
@@ -409,7 +436,7 @@ exports.two_level_factorial_power = two_level_factorial_power;
|
|
|
409
436
|
function __wbg_get_imports() {
|
|
410
437
|
const import0 = {
|
|
411
438
|
__proto__: null,
|
|
412
|
-
|
|
439
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
413
440
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
414
441
|
return ret;
|
|
415
442
|
},
|
|
@@ -420,56 +447,56 @@ function __wbg_get_imports() {
|
|
|
420
447
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
421
448
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
422
449
|
},
|
|
423
|
-
|
|
450
|
+
__wbg___wbindgen_bigint_get_as_i64_b482365c149396c8: function(arg0, arg1) {
|
|
424
451
|
const v = arg1;
|
|
425
452
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
426
453
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
427
454
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
428
455
|
},
|
|
429
|
-
|
|
456
|
+
__wbg___wbindgen_boolean_get_7a12af2b3f899c5a: function(arg0) {
|
|
430
457
|
const v = arg0;
|
|
431
458
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
432
459
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
433
460
|
},
|
|
434
|
-
|
|
461
|
+
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
435
462
|
const ret = debugString(arg1);
|
|
436
463
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
437
464
|
const len1 = WASM_VECTOR_LEN;
|
|
438
465
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
439
466
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
440
467
|
},
|
|
441
|
-
|
|
468
|
+
__wbg___wbindgen_in_50072d4d6e45c193: function(arg0, arg1) {
|
|
442
469
|
const ret = arg0 in arg1;
|
|
443
470
|
return ret;
|
|
444
471
|
},
|
|
445
|
-
|
|
472
|
+
__wbg___wbindgen_is_bigint_60fc0336cb14f5d7: function(arg0) {
|
|
446
473
|
const ret = typeof(arg0) === 'bigint';
|
|
447
474
|
return ret;
|
|
448
475
|
},
|
|
449
|
-
|
|
476
|
+
__wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
|
|
450
477
|
const ret = typeof(arg0) === 'function';
|
|
451
478
|
return ret;
|
|
452
479
|
},
|
|
453
|
-
|
|
480
|
+
__wbg___wbindgen_is_object_edb6b15aa3afe12e: function(arg0) {
|
|
454
481
|
const val = arg0;
|
|
455
482
|
const ret = typeof(val) === 'object' && val !== null;
|
|
456
483
|
return ret;
|
|
457
484
|
},
|
|
458
|
-
|
|
485
|
+
__wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b: function(arg0, arg1) {
|
|
459
486
|
const ret = arg0 === arg1;
|
|
460
487
|
return ret;
|
|
461
488
|
},
|
|
462
|
-
|
|
489
|
+
__wbg___wbindgen_jsval_loose_eq_3c30021c243b64cd: function(arg0, arg1) {
|
|
463
490
|
const ret = arg0 == arg1;
|
|
464
491
|
return ret;
|
|
465
492
|
},
|
|
466
|
-
|
|
493
|
+
__wbg___wbindgen_number_get_1dc732b810cb937c: function(arg0, arg1) {
|
|
467
494
|
const obj = arg1;
|
|
468
495
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
469
496
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
470
497
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
471
498
|
},
|
|
472
|
-
|
|
499
|
+
__wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
|
|
473
500
|
const obj = arg1;
|
|
474
501
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
475
502
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -477,34 +504,34 @@ function __wbg_get_imports() {
|
|
|
477
504
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
478
505
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
479
506
|
},
|
|
480
|
-
|
|
507
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
481
508
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
482
509
|
},
|
|
483
|
-
|
|
510
|
+
__wbg_call_269c5566fbede3eb: function() { return handleError(function (arg0, arg1) {
|
|
484
511
|
const ret = arg0.call(arg1);
|
|
485
512
|
return ret;
|
|
486
513
|
}, arguments); },
|
|
487
|
-
|
|
514
|
+
__wbg_done_cffed884d87aa22e: function(arg0) {
|
|
488
515
|
const ret = arg0.done;
|
|
489
516
|
return ret;
|
|
490
517
|
},
|
|
491
|
-
|
|
518
|
+
__wbg_entries_972a87586902cf87: function(arg0) {
|
|
492
519
|
const ret = Object.entries(arg0);
|
|
493
520
|
return ret;
|
|
494
521
|
},
|
|
495
|
-
|
|
496
|
-
const ret = arg0[arg1 >>> 0];
|
|
497
|
-
return ret;
|
|
498
|
-
},
|
|
499
|
-
__wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
|
|
522
|
+
__wbg_get_6cf5a4d4d8ad3c5a: function() { return handleError(function (arg0, arg1) {
|
|
500
523
|
const ret = Reflect.get(arg0, arg1);
|
|
501
524
|
return ret;
|
|
502
525
|
}, arguments); },
|
|
503
|
-
|
|
526
|
+
__wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
|
|
527
|
+
const ret = arg0[arg1 >>> 0];
|
|
528
|
+
return ret;
|
|
529
|
+
},
|
|
530
|
+
__wbg_get_unchecked_363572bdd397d473: function(arg0, arg1) {
|
|
504
531
|
const ret = arg0[arg1 >>> 0];
|
|
505
532
|
return ret;
|
|
506
533
|
},
|
|
507
|
-
|
|
534
|
+
__wbg_instanceof_ArrayBuffer_d4ff01f8247925ae: function(arg0) {
|
|
508
535
|
let result;
|
|
509
536
|
try {
|
|
510
537
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -514,7 +541,7 @@ function __wbg_get_imports() {
|
|
|
514
541
|
const ret = result;
|
|
515
542
|
return ret;
|
|
516
543
|
},
|
|
517
|
-
|
|
544
|
+
__wbg_instanceof_Map_1ff6a2b54c899f0d: function(arg0) {
|
|
518
545
|
let result;
|
|
519
546
|
try {
|
|
520
547
|
result = arg0 instanceof Map;
|
|
@@ -524,7 +551,7 @@ function __wbg_get_imports() {
|
|
|
524
551
|
const ret = result;
|
|
525
552
|
return ret;
|
|
526
553
|
},
|
|
527
|
-
|
|
554
|
+
__wbg_instanceof_Uint8Array_598adc0fef426aa8: function(arg0) {
|
|
528
555
|
let result;
|
|
529
556
|
try {
|
|
530
557
|
result = arg0 instanceof Uint8Array;
|
|
@@ -534,75 +561,75 @@ function __wbg_get_imports() {
|
|
|
534
561
|
const ret = result;
|
|
535
562
|
return ret;
|
|
536
563
|
},
|
|
537
|
-
|
|
564
|
+
__wbg_isArray_5674713bb7b79043: function(arg0) {
|
|
538
565
|
const ret = Array.isArray(arg0);
|
|
539
566
|
return ret;
|
|
540
567
|
},
|
|
541
|
-
|
|
568
|
+
__wbg_isSafeInteger_8f51c743827d1ec5: function(arg0) {
|
|
542
569
|
const ret = Number.isSafeInteger(arg0);
|
|
543
570
|
return ret;
|
|
544
571
|
},
|
|
545
|
-
|
|
572
|
+
__wbg_iterator_22ddeb808cf55a6f: function() {
|
|
546
573
|
const ret = Symbol.iterator;
|
|
547
574
|
return ret;
|
|
548
575
|
},
|
|
549
|
-
|
|
576
|
+
__wbg_length_31bdaf014f5fbde2: function(arg0) {
|
|
550
577
|
const ret = arg0.length;
|
|
551
578
|
return ret;
|
|
552
579
|
},
|
|
553
|
-
|
|
580
|
+
__wbg_length_4e1adc0d42e23620: function(arg0) {
|
|
554
581
|
const ret = arg0.length;
|
|
555
582
|
return ret;
|
|
556
583
|
},
|
|
557
|
-
|
|
558
|
-
const ret = new Array();
|
|
559
|
-
return ret;
|
|
560
|
-
},
|
|
561
|
-
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
584
|
+
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
562
585
|
const ret = new Uint8Array(arg0);
|
|
563
586
|
return ret;
|
|
564
587
|
},
|
|
565
|
-
|
|
588
|
+
__wbg_new_bebc3f4757acf305: function() {
|
|
566
589
|
const ret = new Object();
|
|
567
590
|
return ret;
|
|
568
591
|
},
|
|
569
|
-
|
|
592
|
+
__wbg_new_ffa92086ea89f79c: function() {
|
|
593
|
+
const ret = new Array();
|
|
594
|
+
return ret;
|
|
595
|
+
},
|
|
596
|
+
__wbg_next_95053e306b1c3aed: function(arg0) {
|
|
570
597
|
const ret = arg0.next;
|
|
571
598
|
return ret;
|
|
572
599
|
},
|
|
573
|
-
|
|
600
|
+
__wbg_next_f31ecb8646d2c605: function() { return handleError(function (arg0) {
|
|
574
601
|
const ret = arg0.next();
|
|
575
602
|
return ret;
|
|
576
603
|
}, arguments); },
|
|
577
|
-
|
|
604
|
+
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
578
605
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
579
606
|
},
|
|
607
|
+
__wbg_set_13d25b81ab403f5e: function(arg0, arg1, arg2) {
|
|
608
|
+
arg0[arg1 >>> 0] = arg2;
|
|
609
|
+
},
|
|
580
610
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
581
611
|
arg0[arg1] = arg2;
|
|
582
612
|
},
|
|
583
|
-
|
|
584
|
-
arg0[arg1 >>> 0] = arg2;
|
|
585
|
-
},
|
|
586
|
-
__wbg_value_a5d5488a9589444a: function(arg0) {
|
|
613
|
+
__wbg_value_c227f843d21da141: function(arg0) {
|
|
587
614
|
const ret = arg0.value;
|
|
588
615
|
return ret;
|
|
589
616
|
},
|
|
590
|
-
|
|
617
|
+
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
591
618
|
// Cast intrinsic for `F64 -> Externref`.
|
|
592
619
|
const ret = arg0;
|
|
593
620
|
return ret;
|
|
594
621
|
},
|
|
595
|
-
|
|
622
|
+
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
596
623
|
// Cast intrinsic for `I64 -> Externref`.
|
|
597
624
|
const ret = arg0;
|
|
598
625
|
return ret;
|
|
599
626
|
},
|
|
600
|
-
|
|
627
|
+
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
601
628
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
602
629
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
603
630
|
return ret;
|
|
604
631
|
},
|
|
605
|
-
|
|
632
|
+
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
606
633
|
// Cast intrinsic for `U64 -> Externref`.
|
|
607
634
|
const ret = BigInt.asUintN(64, arg0);
|
|
608
635
|
return ret;
|
package/node/u_doe.d.cts
CHANGED
|
@@ -125,6 +125,23 @@ export function fit_rsm(design: any, responses: Float64Array, factor_names: any)
|
|
|
125
125
|
*/
|
|
126
126
|
export function fractional_factorial(k: number, p: number): any;
|
|
127
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Metadata for a 2^(k-p) fractional factorial design: resolution, defining
|
|
130
|
+
* relation, and generator equations of the fraction `fractional_factorial(k, p)`
|
|
131
|
+
* actually emits — lets consumers derive the alias structure without pairing
|
|
132
|
+
* the design with an external published table.
|
|
133
|
+
*
|
|
134
|
+
* Returns `{ k: usize, p: usize, resolution: "III"|"IV"|"V",
|
|
135
|
+
* defining_relation: str, generators: [str] }` —
|
|
136
|
+
* e.g. `{ k: 7, p: 3, resolution: "IV",
|
|
137
|
+
* defining_relation: "I=ABCE=BCDF=ACDG=ADEF=BDEG=ABFG=CEFG",
|
|
138
|
+
* generators: ["E=ABC", "F=BCD", "G=ACD"] }`.
|
|
139
|
+
*
|
|
140
|
+
* # Errors
|
|
141
|
+
* Returns an error string if the (k, p) combination is not in the standard table.
|
|
142
|
+
*/
|
|
143
|
+
export function fractional_factorial_info(k: number, p: number): any;
|
|
144
|
+
|
|
128
145
|
/**
|
|
129
146
|
* Generate a 2^k full factorial design.
|
|
130
147
|
*
|
package/node/u_doe_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"iyulab"
|
|
6
6
|
],
|
|
7
7
|
"description": "Design of Experiments (DOE) framework: factorial, Plackett-Burman, CCD, Box-Behnken, Taguchi, effects analysis, RSM, and desirability optimization.",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.8.1",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
package/u_doe.d.ts
CHANGED
|
@@ -125,6 +125,23 @@ export function fit_rsm(design: any, responses: Float64Array, factor_names: any)
|
|
|
125
125
|
*/
|
|
126
126
|
export function fractional_factorial(k: number, p: number): any;
|
|
127
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Metadata for a 2^(k-p) fractional factorial design: resolution, defining
|
|
130
|
+
* relation, and generator equations of the fraction `fractional_factorial(k, p)`
|
|
131
|
+
* actually emits — lets consumers derive the alias structure without pairing
|
|
132
|
+
* the design with an external published table.
|
|
133
|
+
*
|
|
134
|
+
* Returns `{ k: usize, p: usize, resolution: "III"|"IV"|"V",
|
|
135
|
+
* defining_relation: str, generators: [str] }` —
|
|
136
|
+
* e.g. `{ k: 7, p: 3, resolution: "IV",
|
|
137
|
+
* defining_relation: "I=ABCE=BCDF=ACDG=ADEF=BDEG=ABFG=CEFG",
|
|
138
|
+
* generators: ["E=ABC", "F=BCD", "G=ACD"] }`.
|
|
139
|
+
*
|
|
140
|
+
* # Errors
|
|
141
|
+
* Returns an error string if the (k, p) combination is not in the standard table.
|
|
142
|
+
*/
|
|
143
|
+
export function fractional_factorial_info(k: number, p: number): any;
|
|
144
|
+
|
|
128
145
|
/**
|
|
129
146
|
* Generate a 2^k full factorial design.
|
|
130
147
|
*
|
package/u_doe.js
CHANGED
|
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./u_doe_bg.js";
|
|
|
5
5
|
__wbg_set_wasm(wasm);
|
|
6
6
|
wasm.__wbindgen_start();
|
|
7
7
|
export {
|
|
8
|
-
box_behnken, ccd, definitive_screening, desirability, doe_anova, estimate_effects, fit_rsm, fractional_factorial, full_factorial, plackett_burman, signal_to_noise, simplex_centroid, simplex_lattice, steepest_ascent, taguchi_array, two_level_factorial_power
|
|
8
|
+
box_behnken, ccd, definitive_screening, desirability, doe_anova, estimate_effects, fit_rsm, fractional_factorial, fractional_factorial_info, full_factorial, plackett_burman, signal_to_noise, simplex_centroid, simplex_lattice, steepest_ascent, taguchi_array, two_level_factorial_power
|
|
9
9
|
} from "./u_doe_bg.js";
|
package/u_doe_bg.js
CHANGED
|
@@ -209,6 +209,32 @@ export function fractional_factorial(k, p) {
|
|
|
209
209
|
return takeFromExternrefTable0(ret[0]);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Metadata for a 2^(k-p) fractional factorial design: resolution, defining
|
|
214
|
+
* relation, and generator equations of the fraction `fractional_factorial(k, p)`
|
|
215
|
+
* actually emits — lets consumers derive the alias structure without pairing
|
|
216
|
+
* the design with an external published table.
|
|
217
|
+
*
|
|
218
|
+
* Returns `{ k: usize, p: usize, resolution: "III"|"IV"|"V",
|
|
219
|
+
* defining_relation: str, generators: [str] }` —
|
|
220
|
+
* e.g. `{ k: 7, p: 3, resolution: "IV",
|
|
221
|
+
* defining_relation: "I=ABCE=BCDF=ACDG=ADEF=BDEG=ABFG=CEFG",
|
|
222
|
+
* generators: ["E=ABC", "F=BCD", "G=ACD"] }`.
|
|
223
|
+
*
|
|
224
|
+
* # Errors
|
|
225
|
+
* Returns an error string if the (k, p) combination is not in the standard table.
|
|
226
|
+
* @param {number} k
|
|
227
|
+
* @param {number} p
|
|
228
|
+
* @returns {any}
|
|
229
|
+
*/
|
|
230
|
+
export function fractional_factorial_info(k, p) {
|
|
231
|
+
const ret = wasm.fractional_factorial_info(k, p);
|
|
232
|
+
if (ret[2]) {
|
|
233
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
234
|
+
}
|
|
235
|
+
return takeFromExternrefTable0(ret[0]);
|
|
236
|
+
}
|
|
237
|
+
|
|
212
238
|
/**
|
|
213
239
|
* Generate a 2^k full factorial design.
|
|
214
240
|
*
|
|
@@ -388,7 +414,7 @@ export function two_level_factorial_power(k, p, n_replicates, effect_size, sigma
|
|
|
388
414
|
const ret = wasm.two_level_factorial_power(k, p, n_replicates, effect_size, sigma, alpha);
|
|
389
415
|
return ret;
|
|
390
416
|
}
|
|
391
|
-
export function
|
|
417
|
+
export function __wbg_Error_67e7344beaa85059(arg0, arg1) {
|
|
392
418
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
393
419
|
return ret;
|
|
394
420
|
}
|
|
@@ -399,56 +425,56 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
|
399
425
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
400
426
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
401
427
|
}
|
|
402
|
-
export function
|
|
428
|
+
export function __wbg___wbindgen_bigint_get_as_i64_b482365c149396c8(arg0, arg1) {
|
|
403
429
|
const v = arg1;
|
|
404
430
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
405
431
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
406
432
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
407
433
|
}
|
|
408
|
-
export function
|
|
434
|
+
export function __wbg___wbindgen_boolean_get_7a12af2b3f899c5a(arg0) {
|
|
409
435
|
const v = arg0;
|
|
410
436
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
411
437
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
412
438
|
}
|
|
413
|
-
export function
|
|
439
|
+
export function __wbg___wbindgen_debug_string_0e68cf47c9cbd9b0(arg0, arg1) {
|
|
414
440
|
const ret = debugString(arg1);
|
|
415
441
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
416
442
|
const len1 = WASM_VECTOR_LEN;
|
|
417
443
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
418
444
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
419
445
|
}
|
|
420
|
-
export function
|
|
446
|
+
export function __wbg___wbindgen_in_50072d4d6e45c193(arg0, arg1) {
|
|
421
447
|
const ret = arg0 in arg1;
|
|
422
448
|
return ret;
|
|
423
449
|
}
|
|
424
|
-
export function
|
|
450
|
+
export function __wbg___wbindgen_is_bigint_60fc0336cb14f5d7(arg0) {
|
|
425
451
|
const ret = typeof(arg0) === 'bigint';
|
|
426
452
|
return ret;
|
|
427
453
|
}
|
|
428
|
-
export function
|
|
454
|
+
export function __wbg___wbindgen_is_function_fcda5e3902d732fe(arg0) {
|
|
429
455
|
const ret = typeof(arg0) === 'function';
|
|
430
456
|
return ret;
|
|
431
457
|
}
|
|
432
|
-
export function
|
|
458
|
+
export function __wbg___wbindgen_is_object_edb6b15aa3afe12e(arg0) {
|
|
433
459
|
const val = arg0;
|
|
434
460
|
const ret = typeof(val) === 'object' && val !== null;
|
|
435
461
|
return ret;
|
|
436
462
|
}
|
|
437
|
-
export function
|
|
463
|
+
export function __wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b(arg0, arg1) {
|
|
438
464
|
const ret = arg0 === arg1;
|
|
439
465
|
return ret;
|
|
440
466
|
}
|
|
441
|
-
export function
|
|
467
|
+
export function __wbg___wbindgen_jsval_loose_eq_3c30021c243b64cd(arg0, arg1) {
|
|
442
468
|
const ret = arg0 == arg1;
|
|
443
469
|
return ret;
|
|
444
470
|
}
|
|
445
|
-
export function
|
|
471
|
+
export function __wbg___wbindgen_number_get_1dc732b810cb937c(arg0, arg1) {
|
|
446
472
|
const obj = arg1;
|
|
447
473
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
448
474
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
449
475
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
450
476
|
}
|
|
451
|
-
export function
|
|
477
|
+
export function __wbg___wbindgen_string_get_92ab86bb19cbc12f(arg0, arg1) {
|
|
452
478
|
const obj = arg1;
|
|
453
479
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
454
480
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -456,34 +482,34 @@ export function __wbg___wbindgen_string_get_b0ca35b86a603356(arg0, arg1) {
|
|
|
456
482
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
457
483
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
458
484
|
}
|
|
459
|
-
export function
|
|
485
|
+
export function __wbg___wbindgen_throw_5d9e815e6fdf150f(arg0, arg1) {
|
|
460
486
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
461
487
|
}
|
|
462
|
-
export function
|
|
488
|
+
export function __wbg_call_269c5566fbede3eb() { return handleError(function (arg0, arg1) {
|
|
463
489
|
const ret = arg0.call(arg1);
|
|
464
490
|
return ret;
|
|
465
491
|
}, arguments); }
|
|
466
|
-
export function
|
|
492
|
+
export function __wbg_done_cffed884d87aa22e(arg0) {
|
|
467
493
|
const ret = arg0.done;
|
|
468
494
|
return ret;
|
|
469
495
|
}
|
|
470
|
-
export function
|
|
496
|
+
export function __wbg_entries_972a87586902cf87(arg0) {
|
|
471
497
|
const ret = Object.entries(arg0);
|
|
472
498
|
return ret;
|
|
473
499
|
}
|
|
474
|
-
export function
|
|
475
|
-
const ret = arg0[arg1 >>> 0];
|
|
476
|
-
return ret;
|
|
477
|
-
}
|
|
478
|
-
export function __wbg_get_c7eb1f358a7654df() { return handleError(function (arg0, arg1) {
|
|
500
|
+
export function __wbg_get_6cf5a4d4d8ad3c5a() { return handleError(function (arg0, arg1) {
|
|
479
501
|
const ret = Reflect.get(arg0, arg1);
|
|
480
502
|
return ret;
|
|
481
503
|
}, arguments); }
|
|
482
|
-
export function
|
|
504
|
+
export function __wbg_get_b1f0ab13c737f856(arg0, arg1) {
|
|
505
|
+
const ret = arg0[arg1 >>> 0];
|
|
506
|
+
return ret;
|
|
507
|
+
}
|
|
508
|
+
export function __wbg_get_unchecked_363572bdd397d473(arg0, arg1) {
|
|
483
509
|
const ret = arg0[arg1 >>> 0];
|
|
484
510
|
return ret;
|
|
485
511
|
}
|
|
486
|
-
export function
|
|
512
|
+
export function __wbg_instanceof_ArrayBuffer_d4ff01f8247925ae(arg0) {
|
|
487
513
|
let result;
|
|
488
514
|
try {
|
|
489
515
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -493,7 +519,7 @@ export function __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb(arg0) {
|
|
|
493
519
|
const ret = result;
|
|
494
520
|
return ret;
|
|
495
521
|
}
|
|
496
|
-
export function
|
|
522
|
+
export function __wbg_instanceof_Map_1ff6a2b54c899f0d(arg0) {
|
|
497
523
|
let result;
|
|
498
524
|
try {
|
|
499
525
|
result = arg0 instanceof Map;
|
|
@@ -503,7 +529,7 @@ export function __wbg_instanceof_Map_e5b5e3db98422fcc(arg0) {
|
|
|
503
529
|
const ret = result;
|
|
504
530
|
return ret;
|
|
505
531
|
}
|
|
506
|
-
export function
|
|
532
|
+
export function __wbg_instanceof_Uint8Array_598adc0fef426aa8(arg0) {
|
|
507
533
|
let result;
|
|
508
534
|
try {
|
|
509
535
|
result = arg0 instanceof Uint8Array;
|
|
@@ -513,75 +539,75 @@ export function __wbg_instanceof_Uint8Array_309b927aaf7a3fc7(arg0) {
|
|
|
513
539
|
const ret = result;
|
|
514
540
|
return ret;
|
|
515
541
|
}
|
|
516
|
-
export function
|
|
542
|
+
export function __wbg_isArray_5674713bb7b79043(arg0) {
|
|
517
543
|
const ret = Array.isArray(arg0);
|
|
518
544
|
return ret;
|
|
519
545
|
}
|
|
520
|
-
export function
|
|
546
|
+
export function __wbg_isSafeInteger_8f51c743827d1ec5(arg0) {
|
|
521
547
|
const ret = Number.isSafeInteger(arg0);
|
|
522
548
|
return ret;
|
|
523
549
|
}
|
|
524
|
-
export function
|
|
550
|
+
export function __wbg_iterator_22ddeb808cf55a6f() {
|
|
525
551
|
const ret = Symbol.iterator;
|
|
526
552
|
return ret;
|
|
527
553
|
}
|
|
528
|
-
export function
|
|
554
|
+
export function __wbg_length_31bdaf014f5fbde2(arg0) {
|
|
529
555
|
const ret = arg0.length;
|
|
530
556
|
return ret;
|
|
531
557
|
}
|
|
532
|
-
export function
|
|
558
|
+
export function __wbg_length_4e1adc0d42e23620(arg0) {
|
|
533
559
|
const ret = arg0.length;
|
|
534
560
|
return ret;
|
|
535
561
|
}
|
|
536
|
-
export function
|
|
537
|
-
const ret = new Array();
|
|
538
|
-
return ret;
|
|
539
|
-
}
|
|
540
|
-
export function __wbg_new_cd45aabdf6073e84(arg0) {
|
|
562
|
+
export function __wbg_new_1da3429bc3c4541c(arg0) {
|
|
541
563
|
const ret = new Uint8Array(arg0);
|
|
542
564
|
return ret;
|
|
543
565
|
}
|
|
544
|
-
export function
|
|
566
|
+
export function __wbg_new_bebc3f4757acf305() {
|
|
545
567
|
const ret = new Object();
|
|
546
568
|
return ret;
|
|
547
569
|
}
|
|
548
|
-
export function
|
|
570
|
+
export function __wbg_new_ffa92086ea89f79c() {
|
|
571
|
+
const ret = new Array();
|
|
572
|
+
return ret;
|
|
573
|
+
}
|
|
574
|
+
export function __wbg_next_95053e306b1c3aed(arg0) {
|
|
549
575
|
const ret = arg0.next;
|
|
550
576
|
return ret;
|
|
551
577
|
}
|
|
552
|
-
export function
|
|
578
|
+
export function __wbg_next_f31ecb8646d2c605() { return handleError(function (arg0) {
|
|
553
579
|
const ret = arg0.next();
|
|
554
580
|
return ret;
|
|
555
581
|
}, arguments); }
|
|
556
|
-
export function
|
|
582
|
+
export function __wbg_prototypesetcall_ae9f5e7459250748(arg0, arg1, arg2) {
|
|
557
583
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
558
584
|
}
|
|
585
|
+
export function __wbg_set_13d25b81ab403f5e(arg0, arg1, arg2) {
|
|
586
|
+
arg0[arg1 >>> 0] = arg2;
|
|
587
|
+
}
|
|
559
588
|
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
560
589
|
arg0[arg1] = arg2;
|
|
561
590
|
}
|
|
562
|
-
export function
|
|
563
|
-
arg0[arg1 >>> 0] = arg2;
|
|
564
|
-
}
|
|
565
|
-
export function __wbg_value_a5d5488a9589444a(arg0) {
|
|
591
|
+
export function __wbg_value_c227f843d21da141(arg0) {
|
|
566
592
|
const ret = arg0.value;
|
|
567
593
|
return ret;
|
|
568
594
|
}
|
|
569
|
-
export function
|
|
595
|
+
export function __wbindgen_generic_0000000000000001(arg0) {
|
|
570
596
|
// Cast intrinsic for `F64 -> Externref`.
|
|
571
597
|
const ret = arg0;
|
|
572
598
|
return ret;
|
|
573
599
|
}
|
|
574
|
-
export function
|
|
600
|
+
export function __wbindgen_generic_0000000000000002(arg0) {
|
|
575
601
|
// Cast intrinsic for `I64 -> Externref`.
|
|
576
602
|
const ret = arg0;
|
|
577
603
|
return ret;
|
|
578
604
|
}
|
|
579
|
-
export function
|
|
605
|
+
export function __wbindgen_generic_0000000000000003(arg0, arg1) {
|
|
580
606
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
581
607
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
582
608
|
return ret;
|
|
583
609
|
}
|
|
584
|
-
export function
|
|
610
|
+
export function __wbindgen_generic_0000000000000004(arg0) {
|
|
585
611
|
// Cast intrinsic for `U64 -> Externref`.
|
|
586
612
|
const ret = BigInt.asUintN(64, arg0);
|
|
587
613
|
return ret;
|
package/u_doe_bg.wasm
CHANGED
|
Binary file
|