I have a few pairs of points (x,y) and I would like to get parameters of the fitted function. I need these parameters because I would like to count the number of local extremes of the function. Is there any library for C# that can do it?
Example of the trendline from excel: