Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf-quantile

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-quantile - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.travis.yml

2

package.json
{
"name": "turf-quantile",
"version": "0.0.2",
"version": "0.0.3",
"description": "turf quantile module",

@@ -5,0 +5,0 @@ "main": "index.js",

turf-quantile
=============
[![build status](https://secure.travis-ci.org/Turfjs/turf-quantile.png)](http://travis-ci.org/Turfjs/turf-quantile)
Takes a set of features, a property name, and a set of percentiles and outputs a quantile array. This can be passed as a break array to the isolines function or the isobands function.
```js
var quantile = require('turf-quantile')
var fs = require('fs')
var propertyName = 'elevation'
var percentiles = [10,30,40,60,80,90,99]
var pts = JSON.parse(fs.readFileSync('/path/to/pts.geojson'))
var quantiles = quantile(pts, propertyName, percentiles, function(err, quantiles){
console.log(quantiles) // [ 12, 25, 29, 52, 76, 99, 143 ]
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc