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

Sorry all,

A dumb question.
I was searching the Excel groups for a Cubic spline smoothing.

I find numerous messages refering to code entered by David Braden.
In some I find a link:

Most (all?) look like this:
http://groups.google.com/groups?selm...chester.rr.com

But this leads nowhere.

Can somebody help me locating this code?
I really tried myself.

TIA
Eric


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Cubic splines

Try this link instead:

http://groups.google.ca/groups?selm=...chester.rr.com

Eric Desart wrote:
Sorry all,

A dumb question.
I was searching the Excel groups for a Cubic spline smoothing.

I find numerous messages refering to code entered by David Braden.
In some I find a link:

Most (all?) look like this:
http://groups.google.com/groups?selm...chester.rr.com

But this leads nowhere.

Can somebody help me locating this code?
I really tried myself.

TIA
Eric




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Cubic splines

Hello Debra,

A million thanks .... that one works.

I tried again in Ron de Bruyn's Google search and via Google.com by
literally copying text from the David Braden post as text and they couldn't
find it.

You helped me a lot.
And thanks to David to.

Kind regards
Eric

PS: maybe an idea for David to reenter that post that google.com can find it
too. (it's often referred to).



"Debra Dalgleish" wrote in message
...
Try this link instead:


http://groups.google.ca/groups?selm=...chester.rr.com

Eric Desart wrote:
Sorry all,

A dumb question.
I was searching the Excel groups for a Cubic spline smoothing.

I find numerous messages refering to code entered by David Braden.
In some I find a link:

Most (all?) look like this:

http://groups.google.com/groups?selm...chester.rr.com

But this leads nowhere.

Can somebody help me locating this code?
I really tried myself.

TIA
Eric




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Cubic splines

I don't think David has posted in at least 6 months or more, so his
interests must lie elsewhere, at least for the present.

But you have been a bit of a stranger as well.

--
Regards,
Tom Ogilvy


"Eric Desart" wrote in message
...
Hello Debra,

A million thanks .... that one works.

I tried again in Ron de Bruyn's Google search and via Google.com by
literally copying text from the David Braden post as text and they

couldn't
find it.

You helped me a lot.
And thanks to David to.

Kind regards
Eric

PS: maybe an idea for David to reenter that post that google.com can find

it
too. (it's often referred to).



"Debra Dalgleish" wrote in message
...
Try this link instead:


http://groups.google.ca/groups?selm=...chester.rr.com

Eric Desart wrote:
Sorry all,

A dumb question.
I was searching the Excel groups for a Cubic spline smoothing.

I find numerous messages refering to code entered by David Braden.
In some I find a link:

Most (all?) look like this:

http://groups.google.com/groups?selm...chester.rr.com

But this leads nowhere.

Can somebody help me locating this code?
I really tried myself.

TIA
Eric




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default Cubic splines

Eric. Just for feedback, David's code works really well! For example, he
gave 7 data points for testing, with x values running from 1-7.
As a custom function, the Cubic Spline equations of that test data would be
the following: The returned values match David exactly. :)

Function Spline(num)
Dim t, n
n = num - Int(num)

Select Case num
Case Is < 1
t = "#N/A"
Case Is < 2
t = 3 + (21 * n) / 26 - (21 * n ^ 3) / 26
Case Is < 3
t = 3 - (21 * n) / 13 - (63 * n ^ 2) / 26 + (53 * n ^ 3) / 26
Case Is < 4
t = 1 - (9 * n) / 26 + (48 * n ^ 2) / 13 - (61 * n ^ 3) / 26
Case Is < 5
t = 2 - (87 * n ^ 2) / 26 + (61 * n ^ 3) / 26
Case Is < 6
t = 1 + (9 * n) / 26 + (48 * n ^ 2) / 13 - (53 * n ^ 3) / 26
Case Is <= 7
t = 3 + (21 * n) / 13 - (63 * n ^ 2) / 26 + (21 * n ^ 3) / 26
Case Else
t = "#N/A"
End Select

Spline = t
End Function


--
Dana DeLouis
Win XP & Office 2003


"Eric Desart" wrote in message
...
Hello Debra,

A million thanks .... that one works.

I tried again in Ron de Bruyn's Google search and via Google.com by
literally copying text from the David Braden post as text and they
couldn't
find it.

You helped me a lot.
And thanks to David to.

Kind regards
Eric

PS: maybe an idea for David to reenter that post that google.com can find
it
too. (it's often referred to).



"Debra Dalgleish" wrote in message
...
Try this link instead:


http://groups.google.ca/groups?selm=...chester.rr.com

Eric Desart wrote:
Sorry all,

A dumb question.
I was searching the Excel groups for a Cubic spline smoothing.

I find numerous messages refering to code entered by David Braden.
In some I find a link:

Most (all?) look like this:

http://groups.google.com/groups?selm...chester.rr.com

But this leads nowhere.

Can somebody help me locating this code?
I really tried myself.

TIA
Eric




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Cubic splines

Thanks Tom & Dana,

I'll play with David's code next weekend.
:):) Tom I know I've been busy.

:):) But to smooth my consience a bit.
I still help people a lot with physical acoustics in studio groups.
In Excel I'm still stuck with a lot of old macro4 programs.

Dana,
checking your function, it seems I still must search how to make those
formulas for n numbers of x.
Must take some time to better understand.

Warm regards
Eric




"Dana DeLouis" wrote in message
...
Eric. Just for feedback, David's code works really well! For example, he
gave 7 data points for testing, with x values running from 1-7.
As a custom function, the Cubic Spline equations of that test data would

be
the following: The returned values match David exactly. :)

Function Spline(num)
Dim t, n
n = num - Int(num)

Select Case num
Case Is < 1
t = "#N/A"
Case Is < 2
t = 3 + (21 * n) / 26 - (21 * n ^ 3) / 26
Case Is < 3
t = 3 - (21 * n) / 13 - (63 * n ^ 2) / 26 + (53 * n ^ 3) / 26
Case Is < 4
t = 1 - (9 * n) / 26 + (48 * n ^ 2) / 13 - (61 * n ^ 3) / 26
Case Is < 5
t = 2 - (87 * n ^ 2) / 26 + (61 * n ^ 3) / 26
Case Is < 6
t = 1 + (9 * n) / 26 + (48 * n ^ 2) / 13 - (53 * n ^ 3) / 26
Case Is <= 7
t = 3 + (21 * n) / 13 - (63 * n ^ 2) / 26 + (21 * n ^ 3) / 26
Case Else
t = "#N/A"
End Select

Spline = t
End Function


--
Dana DeLouis
Win XP & Office 2003


"Eric Desart" wrote in message
...
Hello Debra,

A million thanks .... that one works.

I tried again in Ron de Bruyn's Google search and via Google.com by
literally copying text from the David Braden post as text and they
couldn't
find it.

You helped me a lot.
And thanks to David to.

Kind regards
Eric

PS: maybe an idea for David to reenter that post that google.com can

find
it
too. (it's often referred to).



"Debra Dalgleish" wrote in message
...
Try this link instead:


http://groups.google.ca/groups?selm=...chester.rr.com

Eric Desart wrote:
Sorry all,

A dumb question.
I was searching the Excel groups for a Cubic spline smoothing.

I find numerous messages refering to code entered by David Braden.
In some I find a link:

Most (all?) look like this:


http://groups.google.com/groups?selm...chester.rr.com

But this leads nowhere.

Can somebody help me locating this code?
I really tried myself.

TIA
Eric




--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html







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
square cubic Dreamstar_1961 Excel Worksheet Functions 1 May 4th 07 03:09 PM
Cubic Parabola or Cubic Spiral Michael M Excel Worksheet Functions 0 August 7th 06 11:19 PM
Convert cubic centimeters to fluid ounces and cubic centimeters OcalaElaine Excel Worksheet Functions 4 June 14th 06 06:43 PM
convert cubic centimeters to fluid ounces and cubic centimeters OcalaElaine Excel Worksheet Functions 4 June 13th 06 10:03 PM


All times are GMT +1. The time now is 09:00 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"