Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

Fit.LinearCombination returns NaN vector

$
0
0

@Raul_m wrote:

Hi
I'm want to Fit with least squares a and b in this model

y=a+b*e^x

with this data (Year,Value)

2010 64
2011 63
2012 61
2013 60
2015 57
2016 50
2017 1

I call Math.NET like this

            double []fittedFunctionParameters = Fit.LinearCombination(
                xValues,
                yValues,
                z => 1.0,
                z => Math.Exp(z));

Debugging i can confirm that xValues and Yvalues are ok but the return value is a vector filled with NaN

What am i doing wrong?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles