[Numpy-discussion] Best fit linear piecewise function?

Chris Barker chris.barker at noaa.gov
Wed Jun 2 11:50:25 EDT 2021


On Wed, Jun 2, 2021 at 1:50 AM Vincent Schut <schut at satelligence.com> wrote:

> Multivariate Adaptive Regression Splines might fit the bill? Implemented
> for python as py-earth: https://github.com/scikit-learn-contrib/py-earth.
>

That looks massively more complex than I was thinking for my use case. And
it seems to be a fit, rather than exactly matching a subset of points. but
as I think about it, for my use case, it might actually work well.

I'll give it a try -- thanks!

-CHB




>
> On 6/2/21 2:22 AM, Chris Barker wrote:
>
> Do any of you know of code for finding an optimum linear piecewise fit to
> a set of points?
>
> Somethin like what is described in this article:
>
> https://www.hindawi.com/journals/mpe/2015/876862/
>
> At a glance, that looked just hard enough to code up that I'm hoping
> someone has already done it :-)
>
>
> -CHB
>
>
> --
>
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> Chris.Barker at noaa.gov
>
> _______________________________________________
> NumPy-Discussion mailing listNumPy-Discussion at python.orghttps://mail.python.org/mailman/listinfo/numpy-discussion
>
>
> --
>
> Vincent Schut
>
> Remote Sensing Software Engineer
>
> +31 302272679 ~ Maliebaan 22 | 3581CP | Utrecht | Netherlands
> Linkedin <https://www.linkedin.com/company/satelligence/> ~
> satelligence.com <http://www.satelligence.com>
> <http://www.satelligence.com>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20210602/59f96c60/attachment-0001.html>


More information about the NumPy-Discussion mailing list