turf-quantile
turf quantile module
turf.quantile(input, field, percentiles)
Takes a FeatureCollection, a property name, and a set of percentiles and returns a quantile array.
Parameters
parameter | type | description |
---|---|---|
input |
FeatureCollection | a FeatureCollection of any type |
field |
String | the property on which to retrieve quantile values |
percentiles |
Array. | an Array of percentiles on which to calculate quantile values |
Example
var points = turf; var breaks = turf; //=breaks
Installation
Requires nodejs.
$ npm install turf-quantile
Tests
$ npm test