@livefolio/sdk / ComputeFn
Type Alias: ComputeFn
ComputeFn = (
series,spec) =>Series
Defined in: features/spec.ts:52
A pure function that computes a feature Series from an input price Series and the typed FeatureSpec describing the indicator's parameters. Implementations must be deterministic and side-effect free — the SDK uses the function as a content-addressed dispatch token via getFeatureCompute and as the registration target for defineFeature.
Parameters
| Parameter | Type | Description |
|---|---|---|
series | Series | Input price series (typically the asset's close prices). |
spec | FeatureSpec | Typed indicator spec carrying the parameters relevant to kind. |
Returns
The computed feature series, aligned to series on t.