help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Nonlinear Least-Squares Fitting


From: Calvin Morrison
Subject: Re: [Help-gsl] Nonlinear Least-Squares Fitting
Date: Thu, 18 Apr 2019 16:00:19 -0400

if you just want a straight C NNLS implementation, I have this.

https://github.com/EESI/quikr/blob/master/src/c/nnls.c

see quikr.c


On Thu, 18 Apr 2019 at 00:32, Marco Maggi <address@hidden> wrote:
>
> Lawrence Habahbeh wrote:
>
> > Hi,
>
> > In the online
> > [Docs](https://www.gnu.org/software/gsl/doc/html/index.html) ยป
> > Nonlinear Least-Squares Fitting, there is an example of fitting an
> > exponential function to data. The data object is a structure with
> > three arguments
> > struct data {
> > size_t n;
> > double *t;
> > double *y;
> >> ;
>
> > Can you please show me how to read the data from a text file and run
> > the optimization as is. . The data is a column vector with daily
> > observations and T = 120000 points .
>
> About the data, start by toying with this:
>
> https://gist.github.com/marcomaggi/8530cf839f462078eb4e5f33255b6663
>
> --
> Marco Maggi
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]