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

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/n/e/NeuroTools-0.2.0/test/test_analysis.py   NeuroTools(Download)
    def testCrosscorrelateNoLag(self):
        int, int_, norm = analysis.crosscorrelate(self.spk0, self.spk1)
        #The following are output was generated with the FIND MATLAB toolbox
        matlab_int = numpy.loadtxt(self.p + '/analysis/crosscorrelate/out_matlab_int')
        numpy.testing.assert_array_almost_equal(int, matlab_int,
    def testCrosscorrelateLag100(self):
        """Test case with lag within the length of the input array
        """
        int, int_, norm, = analysis.crosscorrelate(self.spk0, self.spk1,
                                                   lag=100.0)
    def testCrosscorrelateLag500(self):
        """Test case with lag is higher than the trial length
        """
        int, int_, norm = analysis.crosscorrelate(self.spk0, self.spk1,
                                                  lag=500.0)

src/s/p/SpikeSort-HEAD/src/spike_analysis/xcorr.py   SpikeSort(Download)
 
try:
    from NeuroTools.analysis import crosscorrelate
except:
    crosscorrelate = raise_exception