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

@turf/idw

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/idw - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

8

index.js

@@ -35,10 +35,10 @@ var distance = require('@turf/distance');

// calculate the distance from each control point to cell's centroid
for (var j = 0; j < controlPoints.length; j++) {
var d = distance(centroid(samplingGrid.features[j]), controlPoints[j], units);
for (var j = 0; j < controlPoints.features.length; j++) {
var d = distance(centroid(samplingGrid.features[i]), controlPoints.features[j], units);
if (d === 0) {
zw = controlPoints[j].properties[valueField];
zw = controlPoints.features[j].properties[valueField];
}
var w = 1.0 / Math.pow(d, b);
sw += w;
zw += w * controlPoints[j].properties[valueField];
zw += w * controlPoints.features[j].properties[valueField];
}

@@ -45,0 +45,0 @@ // write IDW value for each grid cell

{
"name": "@turf/idw",
"version": "3.6.0",
"version": "3.6.1",
"description": "Calculate a grid with IDW - Inverse Distance Weighted - values.",

@@ -10,6 +10,6 @@ "main": "index.js",

"dependencies": {
"@turf/centroid": "^3.0.0",
"@turf/distance": "^3.0.0",
"@turf/bbox": "^3.0.0",
"@turf/square-grid": "^3.0.0"
"@turf/centroid": "^3.6.1",
"@turf/distance": "^3.6.1",
"@turf/bbox": "^3.6.1",
"@turf/square-grid": "^3.6.1"
},

@@ -16,0 +16,0 @@ "devDependencies": {

@@ -20,2 +20,6 @@ # @turf/idw

<!-- This file is automatically generated. Please don't edit it directly:
if you find an error, edit the source file (likely index.js), and re-run
./scripts/generate-readmes in the turf project. -->
---

@@ -22,0 +26,0 @@

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