| Prospect Archetype Benchmark | Age | Usage Rate | Rim Frequency | Mid-Range % | 3PT % | Assist % | Def. Length Impact | Match Index |
|---|
| Prospect Archetype Benchmark | Age | Usage Rate | Rim Frequency | Mid-Range % | 3PT % | Assist % | Def. Length Impact | Match Index |
|---|
In the sandbox, every shot placed on the court is classified by distance from the hoop: rim under five feet, mid-range pull-up, or three-pointer. When shot locations shift, the tool computes rim frequency and zone percentages, instantly redrawing the six-axis radar polygon. Six trait differences are normalized and squared, then summed to calculate distance and produce the Archetype Match percentage. Selecting a preset like Dynamic Scoring Wing resets shot distribution and updates the top match score in real time.
How does this sandbox convert shot locations and trait sliders into an archetype similarity percentage?
This visualizer evaluates wing prospects across six traits: usage rate, rim frequency, mid-range percentage, 3-point percentage, assist rate, and defensive length score. When shot markers are placed on the interactive half-court, the page determines shot type based on distance from the hoop (within 70 SVG units for rim, beyond 220 units or out wide for 3PT, and in-between for mid-range). The script normalizes each trait's offset from four pre-programmed benchmark wings, computes a root-mean-square distance, and presents the closest benchmark as an archetype match percentage.
The preset archetypes, baseline statistics, and defensive scores are hardcoded demonstration fixtures rather than official NBA tracking camera data or predictive scouting projections. In the court sandbox, shot outcomes (make vs. miss) are assigned using a simple pseudo-random generator, and the preset switcher buttons contain an unhandled ID reference in the original code, meaning sliders and direct canvas interaction serve as the reliable controls.
Adjusting the Rim Frequency slider changes the trait profile and recomputes the Euclidean similarity index. For example, moving the Rim Frequency slider from 38.0% to 55.0% immediately reflects in the readout, recalculates normalized differences against each benchmark profile, and updates the table's Match Index scores in real time.
For each of the six indicators, the tool measures normalized distance: d_trait = ((custom - benchmark) / scale)^2, using scale factors of 0.20 for usage, 0.40 for rim frequency, 0.25 for mid-range efficiency, 0.17 for three-point percentage, 0.25 for assist rate, and 4.5 for defensive length score.
The total composite distance is computed as the square root of the mean squared normalized differences: totalDist = sqrt(sum(d_i) / 6). The reported match score is (1 - totalDist) * 100, clamped between 0% and 99.9%.
The SVG court coordinates place the rim at (250, 52). Clicks or dragged shot nodes compute Euclidean distance to this coordinate. Distances under 70 units register as rim attempts, while coordinates with a distance over 220 units (or x < 30 or x > 470) are classified as 3-pointers. All intermediate attempts are labeled mid-range.