forum.alglib.net

ALGLIB forum
It is currently Wed Nov 30, 2022 3:41 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: spline1dfitcubic
PostPosted: Wed Jan 09, 2013 12:56 pm 
Offline

Joined: Wed Jan 09, 2013 12:28 pm
Posts: 1
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());

Image

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group