Skip to content

nervAsync

function nervAsync(
hdIn,
ldIn,
opts?): Promise<Nerv>;

Defined in: passes/parallel.ts:214

NeRV across workers.

NeRV benefits most from this: it fits a Gaussian per row by bisection, so it is the slowest pass per point in the library.

ParameterType
hdInPointsInput
ldInPointsInput
optsNervAsyncOptions

Promise<Nerv>

import { nervAsync, nerv } from "@saehrimnir/sickle";
const p = await nervAsync(data, projection, { lambda: 0.5, workers: 4 });
nerv(p).value; // 0.4611