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 #93512 is a reply to message #72088] Tue, 09 August 2016 08:11 Go to previous messageGo to previous message
florishj is currently offline  florishj
Messages: 1
Registered: August 2016
Junior Member
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 13:52:00 PDT 2025

Total time taken to generate the page: 0.00397 seconds