question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document the differences between the 4 (5?) diff. `center*` functions

See original GitHub issue

@stebogit Brings up a good point that we now have a confusing set of four (or five) different measures for “center.” This may make perfect sense to geographers, but is probably opaque to non-geographers. (I mean, I’m still not 100% on understanding @turf/center-of-mass!)

I’ve drafted some boilerplate language that can go in the READMEs for all of them. See #1122 and its README for that draft. It’s just the beginning, however. I also think I could/should draft an infographic that shows what influences each calculation. The idea would be to include the infographic in all of the center functions’ pages on the web documentation and/or in their READMEs?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
muziejuscommented, Dec 5, 2017

artboard 1

I created a draft diagram showing the four different center functions in turf. It turns out @turf/centroid behaves exactly as @turf/center-mean does, but the latter allows for weighting. I don’t know if this diagram makes things any clearer, but maybe…

0reactions
muziejuscommented, Dec 6, 2017

Move discussion to #1154.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Differences and approximate derivatives - MATLAB diff
This MATLAB function calculates differences between adjacent elements of X along the first array dimension whose size does not equal 1:
Read more >
Compare document differences using the legal blackline option
The legal blackline option compares two documents and displays only what changed between them. The documents that are being compared are not changed....
Read more >
An introduction to using diff and patch together | TechTarget
Use the diff command in Linux to discover subtle differences between code files. Then, use the patch command to update those code files...
Read more >
IEP vs. 504 Plan: What's the Difference? - Understood.org
Unlike an IEP, a 504 plan doesn't have to be a written document. A 504 plan generally includes the following: Specific accommodations ,...
Read more >
Compare Google Workspace editions
Google Workspace offers subscription options for individuals, small businesses, large organizations, and schools. Compare Business editions (1-300 users) To ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found