Skip to content
PACKAGES

normalizeScoreSignal()

Normalizes a ScoreSignal for deterministic pure helpers.

Non-finite value/confidence/weight or an empty dimension returns a DATA-style issue.

import { normalizeScoreSignal } from "@graphrefly/ts/scoring";
function normalizeScoreSignal(signal: ScoreSignal): NormalizedScoreSignal
ParameterTypeDescription
signalScoreSignalsignal value used by the helper.

A NormalizedScoreSignal value.

import { normalizeScoreSignal } from "@graphrefly/ts/scoring";

packages/ts/src/scoring/helpers.ts