Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Spline approximation

Is there any way in Excel or VBA to do a spline approximation to test data
that do not follow any polynomial shape? I mean, I have data points and I
want to approximate (i.e., not necessarily pass through the points) that data
with a spline curve.
Thanks.

Fabian


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Spline approximation

Code up in VBA the spline routines from numerical recipes. These are
actually free and available online at: http://www.nr.com/


Fabian Grodek wrote:
Is there any way in Excel or VBA to do a spline approximation to test data
that do not follow any polynomial shape? I mean, I have data points and I
want to approximate (i.e., not necessarily pass through the points) that data
with a spline curve.
Thanks.

Fabian


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Spline approximation

David Braden has posted code for cubic spline
http://groups.google.com/group/micro...2966520eccdb1f

If you are interested, the Excel chart smoother appears to use Bezier curves
http://www.xlrotor.com/Smooth_curve_...ample_file.zip

Jerry

"Fabian Grodek" wrote:

Is there any way in Excel or VBA to do a spline approximation to test data
that do not follow any polynomial shape? I mean, I have data points and I
want to approximate (i.e., not necessarily pass through the points) that data
with a spline curve.
Thanks.

Fabian


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Spline approximation

Jim and Jerry, Thanks a lot!
From Dave Branden example I learned that "the secret" was to use an array
formula.
I coded my algorithm in VBA and it works as I wanted!
Thanks again.
Fabian


"Jerry W. Lewis" wrote:

David Braden has posted code for cubic splines
http://groups.google.com/group/micro...2966520eccdb1f

If you are interested, the Excel chart smoother appears to use Bezier curves
http://www.xlrotor.com/Smooth_curve_...ample_file.zip

Jerry

"Fabian Grodek" wrote:

Is there any way in Excel or VBA to do a spline approximation to test data
that do not follow any polynomial shape? I mean, I have data points and I
want to approximate (i.e., not necessarily pass through the points) that data
with a spline curve.
Thanks.

Fabian


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use cubic spline agron Excel Worksheet Functions 2 May 13th 08 10:26 PM
There is a spline interpolation function? Cinzia Excel Worksheet Functions 1 January 23rd 07 01:33 PM
Cubic Spline Function dmacevans Excel Discussion (Misc queries) 1 September 11th 06 05:36 PM
Polynomial approximation BJBenton Excel Worksheet Functions 1 March 6th 06 04:28 PM
probability of approximation saita Charts and Charting in Excel 3 September 15th 05 06:42 AM


All times are GMT +1. The time now is 01:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"