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

I need help with the Function Parameter for Fit.Curve

$
0
0

@PacoEsp wrote:

Hi Everyone!

I’m working with the Math.NET Numerics library v7.0 for C#, I’m using the Fit.Curve method in two different ways depending on the scenario

Scenario 1) Tuple<double, double> Curve(double[] x, double[] y, Func<double, double, double, double> f , double initialGuess0, double initialGuess1);

Scenario 2) Tuple<double, double, double> Curve(double[] x, double[] y, Func<double, double, double, double, double> f , double initialGuess0, double initialGuess1, double initialGuess2);

But I have a problem, I don’t know exactly what I need to use for the function required in the f parameter Do you have an example for this?

Another question that I have is: Can I use the same function in both scenarios?

This is what I’m trying to do:

var x = new double[] { 0, 3, 6, 9, 12, 15 };
var y = new double[] {0.00, 0.16, 0.32, 0.48, 0.64, 0.80};

var result = Fit.Curve(
x,
y,
null,//What do I need for this?
initialGuess0: 2.5,
initialGuess1: 4.53
);

Thank you in advance for your help

Greetings

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles