forum.alglib.net http://forum.alglib.net/ |
|
spline1dfitcubic http://forum.alglib.net/viewtopic.php?f=2&t=753 |
Page 1 of 1 |
Author: | Ifrit [ Wed Jan 09, 2013 12:56 pm ] |
Post subject: | spline1dfitcubic |
Hello, 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: Code: System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // param = double[1000] of x-values // datas = double[1000] of y-values // m = 200 // --> calculation time is about 5400ms! alglib.spline1dfitcubic(param, datas, m, out info, out s, out rep); sw.Stop(); 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... Thanks Ifrit |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |