Skip to main content

Function: signaturePoints()

signaturePoints(bins, o?): SignaturePoint[]

Defined in: packages/sdvplot/src/shots/signature.ts:78

The shooting signature's samples: FG% from separately kernel-summed makes and attempts (a stretch with no shots is a gap, never 0%), the smoothed league FG% and shot share, and the shrunk colour value (:69-100). Input: 1-ft bins from vsLeague(fgPctByDistance(player), fgPctByDistance(league)).

Parameters​

bins​

readonly DistanceVsLeague[]

o?​

SignatureOptions = {}

Returns​

SignaturePoint[]

Example​

import { fgPctByDistance, signaturePoints, vsLeague } from "@sportsdataverse/sdvplot/shots";

// Brooklyn shots from the sportsdataverse-data nba_stats_shots release, 2025-26
const made = { x_legacy: 0, y_legacy: 0, shot_distance: 0, shot_value: 2, shot_result: "Made" };
const missed = { ...made, shot_result: "Missed" };
signaturePoints(vsLeague(fgPctByDistance([made]), fgPctByDistance([made, missed])), { minAttempts: 1 })[0];