@turf/standard-deviational-ellipse
Advanced tools
Comparing version
@@ -6,5 +6,5 @@ import { | ||
Polygon, | ||
Properties, | ||
GeoJsonProperties, | ||
Point, | ||
} from "@turf/helpers"; | ||
} from "geojson"; | ||
@@ -34,3 +34,3 @@ /** | ||
options?: { | ||
properties?: Properties; | ||
properties?: GeoJsonProperties; | ||
weight?: string; | ||
@@ -37,0 +37,0 @@ steps?: number; |
{ | ||
"name": "@turf/standard-deviational-ellipse", | ||
"version": "6.5.0", | ||
"version": "7.0.0-alpha.0", | ||
"description": "turf standard-deviational-ellipse module", | ||
@@ -49,7 +49,7 @@ "author": "Turf Authors", | ||
"test:tape": "node -r esm test.js", | ||
"test:types": "tsc --esModuleInterop --noEmit types.ts" | ||
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts" | ||
}, | ||
"devDependencies": { | ||
"@turf/random": "^6.5.0", | ||
"@turf/truncate": "^6.5.0", | ||
"@turf/random": "^7.0.0-alpha.0", | ||
"@turf/truncate": "^7.0.0-alpha.0", | ||
"benchmark": "*", | ||
@@ -63,10 +63,10 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/center-mean": "^6.5.0", | ||
"@turf/ellipse": "^6.5.0", | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/invariant": "^6.5.0", | ||
"@turf/meta": "^6.5.0", | ||
"@turf/points-within-polygon": "^6.5.0" | ||
"@turf/center-mean": "^7.0.0-alpha.0", | ||
"@turf/ellipse": "^7.0.0-alpha.0", | ||
"@turf/helpers": "^7.0.0-alpha.0", | ||
"@turf/invariant": "^7.0.0-alpha.0", | ||
"@turf/meta": "^7.0.0-alpha.0", | ||
"@turf/points-within-polygon": "^7.0.0-alpha.0" | ||
}, | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189" | ||
} |
@@ -19,19 +19,20 @@ # @turf/standard-deviational-ellipse | ||
• Robert S. Yuill, “The Standard Deviational Ellipse; An Updated Tool for | ||
Spatial Description,” _Geografiska Annaler_ 53, no. 1 (1971): 28–39, | ||
doi:[10.2307/490885][4]. | ||
Spatial Description,” *Geografiska Annaler* 53, no. 1 (1971): 28–39, | ||
doi:{@link [https://doi.org/10.2307/490885|10.2307/490885}][4]. | ||
• Paul Hanly Furfey, “A Note on Lefever’s “Standard Deviational Ellipse,” | ||
_American Journal of Sociology_ 33, no. 1 (1927): 94—98, | ||
doi:[10.1086/214336][5]. | ||
*American Journal of Sociology* 33, no. 1 (1927): 94—98, | ||
doi:{@link [https://doi.org/10.1086/214336|10.1086/214336}][5]. | ||
**Parameters** | ||
### Parameters | ||
- `points` **[FeatureCollection][6]<[Point][7]>** GeoJSON points | ||
- `options` **[Object][8]** Optional parameters (optional, default `{}`) | ||
- `options.weight` **[string][9]?** the property name used to weight the center | ||
- `options.steps` **[number][10]** number of steps for the polygon (optional, default `64`) | ||
- `options.properties` **[Object][8]** properties to pass to the resulting ellipse (optional, default `{}`) | ||
* `points` **[FeatureCollection][6]<[Point][7]>** GeoJSON points | ||
* `options` **[Object][8]** Optional parameters (optional, default `{}`) | ||
**Examples** | ||
* `options.weight` **[string][9]?** the property name used to weight the center | ||
* `options.steps` **[number][10]** number of steps for the polygon (optional, default `64`) | ||
* `options.properties` **[Object][8]** properties to pass to the resulting ellipse (optional, default `{}`) | ||
### Examples | ||
```javascript | ||
@@ -46,3 +47,3 @@ var bbox = [-74, 40.72, -73.98, 40.74]; | ||
Returns **[Feature][11]<[Polygon][12]>** an elliptical Polygon that includes approximately 1 SD of the dataset within it. | ||
Returns **[Feature][11]<[Polygon][12]>** an elliptical Polygon that includes approximately 1 SD of the dataset within it. | ||
@@ -55,5 +56,5 @@ [1]: https://tools.ietf.org/html/rfc7946#section-3.3 | ||
[4]: https://doi.org/10.2307/490885 | ||
[4]: https://doi.org/10.2307/490885|10.2307/490885} | ||
[5]: https://doi.org/10.1086/214336 | ||
[5]: https://doi.org/10.1086/214336|10.1086/214336} | ||
@@ -60,0 +61,0 @@ [6]: https://tools.ietf.org/html/rfc7946#section-3.3 |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18774
1.04%96
1.05%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated