Surface fitting using NR function svdfit ( )

This is a discussion on Surface fitting using NR function svdfit ( ) within the C Programming forums, part of the General Programming Boards category; Hi, I want to fit a surface i.e. W(x,y) using svdfit() provided by "Numerical Recipes in C". svdfit() is written ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    7

    Surface fitting using NR function svdfit ( )

    Hi,

    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.):

    http://www.fizyka.umk.pl/nrbook/bookcpdf.html

    This is my problem:

    Code:
    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.

    Thanks
    Last edited by iamc; 09-16-2010 at 06: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, 09:18 PM
  2. Need help designing a recursive function.
    By broli86 in forum C Programming
    Replies: 3
    Last Post: 07-24-2008, 01:45 PM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07:54 PM
  4. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  5. Game update...
    By jdinger in forum Game Programming
    Replies: 14
    Last Post: 11-08-2002, 07:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21