Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/n/e/NeuroTools-0.2.0/test/test_analogs.py   NeuroTools(Download)
    def testCovariance(self):
        a1 = analogs.AnalogSignal(np.random.normal(size=10000),dt=0.1)
        a2 = analogs.AnalogSignal(np.random.normal(size=10000),dt=0.1)
        assert a1.cov(a2) < 0.5
        assert a1.cov(a1) > 0.5