Changeset 4305 for trunk/Ohana/src/opihi/scripts/test.pro
- Timestamp:
- Jun 17, 2005, 12:20:48 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/scripts/test.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/scripts/test.pro
r3689 r4305 1 2 macro testgauss 3 create x -20 20 0.1 4 set dy = zero(x) + 0.03 5 set X = x - $1 6 set y = $3*exp(-0.5*(X^2/$2^2)) + $4 + 0.1*(rnd(X) - 0.5) 7 # set y = $3*exp(-0.5*(X^2/$2^2)) + $4 8 lim x y; clear; box; plot x y -dy dy -x 2 -pt 2 9 10 $C0 = $1+5 11 $C1 = $2-10 12 $C2 = $3 13 $C3 = $4 14 15 vgauss x y dy yf 16 end 17 18 macro testpoor 19 create x -20 20 0.1 20 set dy = zero(x) + 0.03 21 set X = x - $1 22 set y = 3 + zero(x) + 0.1*(rnd(X) - 0.5) 23 # set y = (x + 20)/10 + $4 + 0.1*(rnd(X) - 0.5) 24 # set y = $3*exp(-0.5*(X^2/$2^2)) + $4 25 lim x y; clear; box; plot x y -dy dy -x 2 -pt 2 26 27 $C0 = $1 28 $C1 = $2 29 $C2 = $3 30 $C3 = $4 31 32 vgauss x y dy yf 33 end 1 34 2 35 macro testfit
Note:
See TracChangeset
for help on using the changeset viewer.
