def linear(self):
    a = numpy.random.uniform(5.0, 1.0, 1000)
    b = numpy.random.uniform(10.0, 2.0, 1000)
    (slope, intercept, r, p, std_err) = stats.linregress(a, b)
    print(slope, intercept, r, p, std_err)
    mymodel = list(map((lambda xa: self.myfunc(xa, slope, intercept)), a))
    plt.scatter(a, b)
    plt.plot(a, mymodel)
    plt.show()
def linear(self):
    a = numpy.random.uniform(5.0, 1.0, 1000)
    b = numpy.random.uniform(10.0, 2.0, 1000)
    (slope, intercept, r, p, std_err) = stats.linregress(a, b)
    print(slope, intercept, r, p, std_err)
    mymodel = list(map((lambda xa: self.myfunc(xa, slope, intercept)), a))
    plt.scatter(a, b)
    plt.plot(a, mymodel)
    plt.show()