GraphReFlyTS

API Reference

normalizeScoreSignal()

Normalizes a ScoreSignal for deterministic pure helpers.

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

Import

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

Signature

function normalizeScoreSignal(signal: ScoreSignal): NormalizedScoreSignal

Parameters

ParameterTypeDescription
signalScoreSignalsignal value used by the helper.

Returns

A NormalizedScoreSignal value.

Example

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

Source

packages/ts/src/scoring/helpers.ts