package
Calculate the parameters for a box plot.
npm install box-plotGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Calculate the parameters for a box plot.
npm install box-plotconst boxPlot = require("box-plot")
boxPlot([-15, 1, 2, 4, 3, 5, 8, 6, 7, 9, 10, 25])
//=> { maximum: 10, upperQuartile: 9, median: 5.5, lowerQuartile: 2, minimum: 1 }Type: number[]
An array of values to compute the box plot for.
Type: number
The largest value that is not an outlier. An outlier is a number that is greater than 1.5x the difference between the upper and lower quartile added to the upper quartile.
Type: number
The median of the values after the middle number(s).
Type: number
The median of all of the values.
Type: number
The median of the values before the middle number(s).
Type: number
The smallest value that is not an outlier. An outlier is a number that is smaller than 1.5x the difference between the upper and lower quartile subtracted from the lower quartile.
Estimated unpacked size across 5 packages.
18.0 kB
Includes dependencies.