Thread: Surface fitting using NR function svdfit ( )

  1. #1
    Registered User
    Join Date
    May 2010

    Surface fitting using NR function svdfit ( )


    I want to fit a surface i.e. W(x,y) using svdfit() provided by "Numerical Recipes in C".

    svdfit() is written for curve fitting and not for surface fitting. But one can use svdfit(), as claimed by authors of NR book, to do surface fitting. On page 680 of NR book, authors have given a hint on how to use svdfit() for fitting a surface. But I have not understood it.

    This link may be helpful (Chapter 15 th is relevant here.):

    This is my problem:

    I have a set of 100 numbers. I want to fit a 2-Dimensional function W(x,y) to these numbers.
    i.e. in other words, I have following 2 data columns:
       W(x1, y1)       (x1, y1)
       W(x2, y2)       (x2, y2)
       W(x3, y3)       (x3, y3)
          :               :
          :               :
       W(x100, y100)   (x100, y100)
    Any help will be appreciated.

    Last edited by iamc; 09-16-2010 at 05:14 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Need help designing a recursive function.
    By broli86 in forum C Programming
    Replies: 3
    Last Post: 07-24-2008, 12:45 PM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  4. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  5. Game update...
    By jdinger in forum Game Programming
    Replies: 14
    Last Post: 11-08-2002, 07:10 AM