IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 17, 2005, 12:20:48 PM (21 years ago)
Author:
eugene
Message:

added erf to stack_math, fixed up precedence order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/scripts/test.pro

    r3689 r4305  
     1
     2macro 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
     16end
     17
     18macro 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
     33end
    134
    235macro testfit
Note: See TracChangeset for help on using the changeset viewer.