Click here to Skip to main content
15,887,267 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: How to find the shortest path between two nodes in a undigraph and it should via several given nodes? Pin
Member 1222963626-Dec-15 6:59
Member 1222963626-Dec-15 6:59 
Questionneed help in algorithum Pin
snehal1221-Aug-13 21:16
snehal1221-Aug-13 21:16 
GeneralRe: need help in algorithum Pin
harold aptroot1-Aug-13 22:05
harold aptroot1-Aug-13 22:05 
GeneralRe: need help in algorithum Pin
Richard MacCutchan1-Aug-13 23:16
mveRichard MacCutchan1-Aug-13 23:16 
GeneralRe: need help in algorithum Pin
Bernhard Hiller2-Aug-13 0:02
Bernhard Hiller2-Aug-13 0:02 
AnswerRe: need help in algorithum Pin
SoMad2-Aug-13 0:08
professionalSoMad2-Aug-13 0:08 
GeneralRe: need help in algorithum Pin
koll Zhu22-Sep-13 23:55
koll Zhu22-Sep-13 23:55 
QuestionCubic Spline Interpolation [Answered] Pin
Skippums18-Jul-13 15:02
Skippums18-Jul-13 15:02 
I am using the SplineInterpolator class in Java, and am getting some unexpected results. I think it is because of the restriction that cubic splines are required to have a continuous second derivative at each knot, but am not sure. Here is the observed peculiarity:

Lets say I have five data points, (x1, y1), (x2, y2), ... (x5, y5), and create a cubic spline interpolation between them. Then I compute another cubic spline interpolation over only the first four out of five knots.

My expectation was that the first two cubic segments (the segment between points 1 and 2, and the segment between points 2 and 3) would be identical between the two interpolations, but this is not the case. Instead, each segments has a different interpolating function.

Is there any way to compute a cubic spline interpolation that has the same interpolating function between all common knots (excluding x segments at each end, where x is some constant)? I know this is possible if I ignore the requirement that the second derivative is continuous, but then it is not technically a cubic spline. Also, if there is already a Java library that does what I am asking, please let me know! Thanks,
Sounds like somebody's got a case of the Mondays

-Jeff


modified 23-Jul-13 17:57pm.

AnswerRe: Cubic Spline Interpolation Pin
Bernhard Hiller18-Jul-13 20:53
Bernhard Hiller18-Jul-13 20:53 
GeneralRe: Cubic Spline Interpolation Pin
Skippums19-Jul-13 7:38
Skippums19-Jul-13 7:38 
GeneralRe: Cubic Spline Interpolation Pin
Stefan_Lang22-Jul-13 1:21
Stefan_Lang22-Jul-13 1:21 
AnswerRe: Cubic Spline Interpolation Pin
Stefan_Lang22-Jul-13 2:07
Stefan_Lang22-Jul-13 2:07 
AnswerRe: Cubic Spline Interpolation Pin
Skippums23-Jul-13 11:57
Skippums23-Jul-13 11:57 
QuestionHow to determine whether change over time is an outlier Pin
GuyThiebaut7-Jul-13 0:02
professionalGuyThiebaut7-Jul-13 0:02 
AnswerRe: How to determine whether change over time is an outlier Pin
Manfred Rudolf Bihy23-Jul-13 11:22
professionalManfred Rudolf Bihy23-Jul-13 11:22 
GeneralRe: How to determine whether change over time is an outlier Pin
GuyThiebaut23-Jul-13 21:55
professionalGuyThiebaut23-Jul-13 21:55 
Questionfast division algoirthm Pin
khomeyni22-Jun-13 6:01
khomeyni22-Jun-13 6:01 
GeneralRe: fast division algoirthm Pin
harold aptroot22-Jun-13 10:32
harold aptroot22-Jun-13 10:32 
GeneralRe: fast division algoirthm Pin
khomeyni22-Jun-13 23:19
khomeyni22-Jun-13 23:19 
GeneralRe: fast division algoirthm Pin
harold aptroot23-Jun-13 1:42
harold aptroot23-Jun-13 1:42 
GeneralRe: fast division algoirthm Pin
khomeyni2-Jul-13 2:42
khomeyni2-Jul-13 2:42 
GeneralRe: fast division algoirthm Pin
harold aptroot2-Jul-13 3:11
harold aptroot2-Jul-13 3:11 
GeneralRe: fast division algoirthm Pin
khomeyni2-Jul-13 8:58
khomeyni2-Jul-13 8:58 
GeneralRe: fast division algoirthm Pin
harold aptroot2-Jul-13 9:44
harold aptroot2-Jul-13 9:44 
QuestionAlgorithm Sum From Offset To Number Pin
A*****17-Jun-13 12:37
A*****17-Jun-13 12:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.