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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
hdIn | PointsInput |
ldIn | PointsInput |
opts | NervAsyncOptions |
Returns
Section titled “Returns”Promise<Nerv>
Example
Section titled “Example”import { nervAsync, nerv } from "@saehrimnir/sickle";
const p = await nervAsync(data, projection, { lambda: 0.5, workers: 4 });nerv(p).value; // 0.4611