Changeset 815


Ignore:
Timestamp:
08/06/15 09:08:28 (10 months ago)
Author:
mmckerns
Message:

added noisy data fitting example

Location:
mystic/examples2
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/examples2/polyfit.py

    r813 r815  
    66#  - http://mmckerns.github.io/project/mystic/browser/mystic/LICENSE 
    77""" 
    8     Fit linear and quadratic polynomial to noisy data 
     8    Fit linear and quadratic polynomial to noisy data: 
     9               y(x) ~ a + b * x   --or--   y(x) ~ a + b * x + c * x**2 
    910 
    1011    where: 
    1112               0 >= x >= 4 
    12                y = y0 + yn 
    13                y0 = 1.5 * exp(-0.2 * x) + 0.3 
     13               y(x) = y0(x) + yn 
     14               y0(x) = 1.5 * exp(-0.2 * x) + 0.3 
    1415               yn = 0.1 * Normal(0,1) 
    1516""" 
Note: See TracChangeset for help on using the changeset viewer.