|Page 1 of 1|
|Author:||Ifrit [ Wed Jan 09, 2013 12:56 pm ]|
I'm new in this forum and also with alglib... (alglib-3.6.0.csharp)
I'm using the spline1dfitcubic and penalized spline function to create a smoother graph of noisy data.
The results was greate, but the calculation time was extremly high!
Here my code:
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
// param = double of x-values
// datas = double of y-values
// m = 200
// --> calculation time is about 5400ms!
alglib.spline1dfitcubic(param, datas, m, out info, out s, out rep);
System.Diagnostics.Trace.WriteLine("Spline1dfit time in ms:" + sw.ElapsedMilliseconds.ToString());
The calculation time is more the 5 seconds!
In the past I used an ansi-C lib with weighted cubic spline fit and if I does a direct compare within my software, the optical result is the same but the ansi-C lib only needs less than a milli second.
It is possible, that there are som debug prints in the background, which slow down the calculation?
Are there any other ideas, what could be the reason?
I would be happy to use this great library but 5 seconds for this calculation seems to much...
|Page 1 of 1||All times are UTC|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group