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:
air.