normalizeScoreSignal()
Normalizes a ScoreSignal for deterministic pure helpers.
Non-finite value/confidence/weight or an empty dimension returns a DATA-style issue.
Import
Section titled “Import”import { normalizeScoreSignal } from "@graphrefly/ts/scoring";Signature
Section titled “Signature”function normalizeScoreSignal(signal: ScoreSignal): NormalizedScoreSignalParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
signal | ScoreSignal | signal value used by the helper. |
Returns
Section titled “Returns”A NormalizedScoreSignal value.
Example
Section titled “Example”import { normalizeScoreSignal } from "@graphrefly/ts/scoring";Source
Section titled “Source”packages/ts/src/scoring/helpers.ts