function mylin, x, p ; P should be [slope, offset] ; p contains the mean and sigma values. val = p[0] * x + p[1] return, val end