code wiki / (root) / nx_doe.nx

nx_doe.nx

buildroot/runtime/nx_doe.nx

2978 B97 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_doe.nx -- FOOD-SCIENCE SUITE / DESIGN OF EXPERIMENTS rung. Closes the DOE behind-axis (where Minitab/JMP lead): 2^k full-factorial and 2^(k-p) fractional-factorial designs, with main effects and interaction effects computed from the coded (-1/+1) sign matrix -- the same estimator Yates' algorithm produces, done in exact integer arithmetic. Standard (Yates) run order: factor j's coded level in run i is +1 iff bit j of i is set, else -1. A main effect = (2/N) * sum(sign_j(i)*y_i); an interaction effect uses the product of the two factors' signs. All INTEGER (responses integer; effects are exact when N | 2*sum). THE exceed vs the field: not depth over Minitab, but the SAME factorial estimator, sovereign + composable with the rest of the food-science suite (optimize a ferment or a formulation and feed the winner straight into the flavor/nutrition organs). grounded: box_hunter_hunter_2k_factorial + yates_algorithm_effects genealogy_id: design_of_experiments + nishi_food_science_suite

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_doe.nx nx_doe_test.nx

imports: nx_syscalls.nx

imported by: nx_doe_test.nx

structs

none

consts

none

functions

23func doe_num_runs(k: i64) -> i64
called by 2: doe_frac_runsmain
30func doe_frac_runs(k: i64, p: i64) -> i64
called by 1: main calls 1: doe_num_runs
37func doe_sign(run_i: i64, factor_j: i64) -> i64
43func doe_grand_mean(y: *i64, nruns: i64) -> i64
called by 1: main
55func doe_main_effect(y: *i64, nruns: i64, factor_j: i64) -> i64
called by 2: doe_dominant_factormain calls 1: doe_sign
67func doe_interaction_effect(y: *i64, nruns: i64, fa: i64, fb: i64) -> i64
called by 1: main calls 1: doe_sign
78func doe_abs(v: i64) -> i64
called by 1: doe_dominant_factor
84func doe_dominant_factor(y: *i64, nruns: i64, k: i64) -> i64
called by 1: main calls 2: doe_absdoe_main_effect