Findind parameters from a equation

M

Mayneord

Hallo all

I looking for the function similar to ' Findfit ' of mathematica in C+
+ ?
Please can somebody help me with this..

your help much appreciated

May
 
M

Mayneord

How the hell should we know what 'Findfit' is?


Please ask a C++ language question.

V

Sorry dude!!

Findfit is a function similar to linear least square approximations
Well, its similar to curve fitting, in addition getting the few
parameters from the fit.
Please tell me how can I do linear least square approximations in C+
+ ?

thanks

May
 
V

Victor Bazarov

Mayneord said:
Sorry dude!!

Findfit is a function similar to linear least square approximations
Well, its similar to curve fitting, in addition getting the few
parameters from the fit.
Please tell me how can I do linear least square approximations in C+
+ ?

No problem, dude!!

There is no standard function that does "linear least square
approximation". You need to either find a 3rd party library for
that, or write your own.

V
 
J

Jerry Coffin

Hallo all

I looking for the function similar to ' Findfit ' of mathematica in C+
+ ?
Please can somebody help me with this..

Somebody almost certainly can. The best chance of finding somebody who
can is probably a newsgroup where it's topical, like sci.stat.math.
Given that you're searching for a really well-known algorithm, googling
for something like "least squares linear regression algorithm" will
almost certainly yield usable results as well.

Once you know the basics of the algorithm you want to implement, this
would be a good place to ask about details about how to implement it as
well as possible in C++, such as deciding whether you want to use
std::vector or std::valarray to store the data, and (since a linear
regresion produces two outputs, a slope and a Y intercept) whether it
would make sense to create a dedicated class for the result, or just put
the numbers into an instantiation of std::pair.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,524
Latest member
ecomwebdesign

Latest Threads

Top