• Home
  • About
    • Kira's Blog Site

      Doctor X's blog site

    • Learn More
    • Email
    • Twitter
    • Github
    • Steam
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Data Analysis
  • Climate Projects
  • Videos
  • Life
  • Notes
  • Algorithm
  • Papers

Curve Fitting

13 Jun 2020

FITTING

scipy.optmize

define the object functions

def quadratic(x,A,B,C)
    return A*x**2 + B*x + C

A,B,C = optimize.curve_fit(quadratic, x, y)[0]
y_ = A*x**2 + B*x + C

DISADVANTAGE

THE OBJECT FUNCTION SHOULD BE DEFINE FIRST THE SUITABEL WILL AFFECT THE FINAL RESULT DIRECTLY

HERE, IN QUANTUM PHYSICS, CHEMICAL, IT IS NOT RECOMMENDED

THE RECOMMENDED WAY IS lmfit

LMFIT

THE WEBSITE

药剂反应

请采用Origin,别想某胡博后,哈哈哈哈

THE EQUATION SHOULD BE COMPLEX IF YOU NEED TO KNOW HOW TO COMPUTE AND THE DISADVANTAGE OF origin IS YOU WOULD NOT KNOW HOW YOU GET IT

\[span = A2 - A1\] \[y1 = span * \frac{p}{1 + 10^{(l_1 * h_1)}}\] \[y2 = span * \frac{1-p}{1 + 10^{(l_2 * h_2)}}\] \[y = A1 + y1 + y2\]


Like Tweet +1