code wiki / (root) / nx_lbp_cluster.nx

nx_lbp_cluster.nx

buildroot/runtime/nx_lbp_cluster.nx

2982 B58 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic lbp
docsdependenciesstructsconstsfunctions

about

nx_lbp_cluster.nx -- SOVEREIGN face-descriptor RUNG 4 GATE: greedy chi-square clustering of descriptors into person groups (cluster_greedy in nx_lbp_core.nx). Pure NishiLang, no benchmark. KAT on synthetic descriptors with 3 clearly-separated groups -> exactly 3 clusters with correct membership; plus threshold neg-controls (huge thresh -> 1 cluster, zero thresh -> every item its own). This is the engine that will turn the corpus descriptor store into galx_face_index (cid->person). Build/run: ./_offc/nx_sov_build_run.elf nx_lbp_cluster license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_lbp_core.nx nx_lbp_cluster.nx

imports: nx_syscalls.nxnx_lbp_core.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap setrow cluster_greedy chi2_at lp sys_write ln sys_mmap ↻ sys_write ↻ sys_exit

structs

none

consts

9const K_MAGIC_50000: i64 = 50000
10const K_MAGIC_1000000000: i64 = 1000000000

functions

12func setrow(buf: *i64, i: i64, d: i64, b0: i64, b1: i64, b2: i64, b3: i64) -> i64
called by 1: main
16func main() -> i64