comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Smoothing Spline -- any existing efficient routines?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Smoothing Spline -- any existing efficient routines? [message #93815 is a reply to message #93512] Wed, 26 October 2016 14:04 Go to previous message
norm.sheppard is currently offline  norm.sheppard
Messages: 1
Registered: October 2016
Junior Member
Thanks, I had the same problem with the weights and your fix worked for me.

On Tuesday, August 9, 2016 at 11:11:06 AM UTC-4, flor...@gmail.com wrote:
> There appears to be a bug in the line
>
> D(1) = Y(1) - LAMBDA * (F(1) * Q(1) + R(1) * Q(2)) * SIGM(0)
>
> I believe the last term should be SIGM(1)
>
> I found that if the weights of the first two points are different, the original code gives erroneous answers; but when they are the same, it works beautifully. However, when I fix that line to
>
> D(1) = Y(1) - LAMBDA * (F(1) * Q(1) + R(1) * Q(2)) * SIGM(1)
>
> then it works even when the weights are different.
>
> Thank you for posting this!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Logistic model in COMFIT function
Next Topic: Structures and arrays of structures

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:34:57 PDT 2025

Total time taken to generate the page: 0.00419 seconds