Skip to content
@addmaple/stats
Search
K
Main Navigation
Guide
API Reference
Examples
GitHub
Appearance
Menu
Return to top
On this page
weightedQuantiles
Calculate multiple weighted quantiles at once.
Try it out
Try it out
Run
import { init, weightedQuantiles } from '@addmaple/stats'; await init(); const data = [1, 2, 3, 4, 5]; const weights = [1, 1, 2, 1, 1]; const result = weightedQuantiles(data, weights, [0.25, 0.5, 0.75]); result;
Initializing library...