Skip to content
Shapemetry

@huukhanhnguyen/model / nesting

nesting

nest()

nest(input, config?, generations?, seed?): NestResult | null

One synchronous nest. Returns null when the bin is invalid — the kernel's undefined.

seed drives the genetic algorithm's PRNG inside the kernel: the same (input, config, generations, seed) always gives byte-identical placements. It defaults to 0 rather than a clock reading so a library call is reproducible unless the caller deliberately varies it.

Parameters

input

NestInput

config?

Partial<NestConfig> = {}

generations?

number = 10

seed?

number = 0

Returns

NestResult | null

Last updated: 📖 1 min readEdit on GitHub