Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. curve fitting

curve fitting

Scheduled Pinned Locked Moved C#
helptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bwagz
    wrote on last edited by
    #1

    I'm trying to do logarithmic curve fitting to plotted data points. The equation is as follows: y = a + b*ln(x) The problem is that I have no clue how to compute the 'a' and 'b' coefficients. Can anyone think back to scientific comp to remember how this is done? Thanks

    S 1 Reply Last reply
    0
    • B bwagz

      I'm trying to do logarithmic curve fitting to plotted data points. The equation is as follows: y = a + b*ln(x) The problem is that I have no clue how to compute the 'a' and 'b' coefficients. Can anyone think back to scientific comp to remember how this is done? Thanks

      S Offline
      S Offline
      Sean Cundiff
      wrote on last edited by
      #2

      let u=ln(x) then y = a + b*u now use the method of least squares to find a and b. Note: you are using the method of least squares to find y(u), so everywhere you would use x in least squares now use u(=ln(x)). There are several good resources on the web. Google for 'Least squares' and 'logarithm'. -Sean ---- Shag a Lizard

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups