ALGLIB forum
It is currently Mon May 29, 2023 6: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 

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


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 10 guests

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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group