Tom MacWright

Results 366 comments of Tom MacWright

There currently isn't one - I'm proposing we could include one

Happy to consider an alternative format as a separate function, like `ckmeansBreaks`. Sounds like something like `output.map((values, i) => values[i ? values.length - 1 : 0])` is all that's necessary...

Hi Fredy! Sure, I think that'd be a good addition - given that it can just be another property on the object already returned by `linearRegression` we should be able...

Hahaha, wow, okay - thank you for the heads-up. One of these days we'll have a JavaScript packaging spec that lasts longer than a year 😆

Sure. Fwiw, what tool is already requiring this format, and how is it doing that without breaking… basically every npm module?

Ref: - http://stat.ethz.ch/R-manual/R-patched/library/stats/html/lm.html - https://en.wikipedia.org/wiki/Weighted_least_squares#Weighted_least_squares

Sorry, not enough context; I was just adding references, since it takes a little while to figure out what weighted linear regression is. I'm not aware of any js implementations,...

simple-statistics is pretty committed to vanilla input; I don't plan on supporting generators, streams, etc., because these make it less readable and more complex. A more tuned implementation could be...

Hey Paul! Yep, as it currently stands, Turf doesn't support the elevation parameter in GeoJSON in any meaningful way. This was a combination of two factors: 1. It's kind of...

👎 I'm a hesitant -1 here. * One does not guess turf-meta arguments: there is [documentation](https://github.com/Turfjs/turf/tree/master/packages/turf-meta). This is mostly an internal method, that most people don't need to use. It's...