CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Spline with non-increasing x values

    Hi, currently I have a problem with creating cubic spline that has non-increasing x values. I created 2 arrays X[i] and Y[i], and I pass them through a spline routine created by John Burkardt, it is able to work but I need to be able to create spline that intersects or can go in the opp direction. I thought about splitting the process etc, i scan through my X array and when I come to a point where there is a change in direction of X, i stop and pass that whole part through the spline routine, then i continue and when i come to another change in direction, i pass that part through the routine again... but I feel that not only that it will be tedious and slow but the end results, the curve will not be smooth. Anyone have any solutions? I have appended the code of the spline routine and evaluation.
    Thanks for the help

    Mark
    Attached Files Attached Files

  2. #2
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    Re: Spline with non-increasing x values

    [ Redirected Thread ]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured