Re:Offer HN: Tell me what you need, and I'll program it (for...
by javajosh on Sunday November 11, 2012 @01:37PM
(#4770189)
This is a mischaracterization what curve-fitting algorithms do. You generally have to pick the function you want to fit, and then it's parameters are varied to minimize some comparison function. This means that this function would need to take the data, a chosen function, and a comparison function to minimize.
Also, this is a pure JavaScript project, and the OP wants to do something with HTML/CSS/etc.
Re:Offer HN: Tell me what you need, and I'll program it (for...
by nrmn on Sunday November 11, 2012 @01:44PM
(#4770210)
Do I need to create the function I want to fit? Or would I have to look for a function that looks 'similar' to a plot of my data? So say my data 'looks' like a cubic function, I would need to supply it a blank(missing the coefficients) cubic function?
Also thank you for clearing up the mischaracterization.
Re:Offer HN: Tell me what you need, and I'll program it (for...
by javajosh on Sunday November 11, 2012 @04:20PM
(#4770631)
A good implementation will have a bunch of ready-to-use functions for - polynomials of various degrees, at least.
Re:Offer HN: Tell me what you need, and I'll program it (for...
by davyjones on Sunday November 11, 2012 @08:17PM
(#4771209)
Polynomial curve fitting can be "dangerous". As in, extrapolating results can be unpredictable if not done right.
I recall an example where 7-8 points, trending up, are fitted with a polycurve that sharply dropped right after the last data point thereby giving erroneous prediction.
Side question: you will be making the code open source right?