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/src/signals/spikes.py   NeuroTools(Download)
        hist       = self.time_histogram(time_bin, normalized=False)
        from NeuroTools import analysis
        freq_spect = analysis.simple_frequency_spectrum(hist)
        freq_bin   = 1000.0/self.duration() # Hz
        freq_axis  = numpy.arange(len(freq_spect)) * freq_bin    

src/n/e/NeuroTools-0.2.0/test/test_analysis.py   NeuroTools(Download)
                    if 3 * f < 1000.0 / binwidth:  # limits the max frequency
                        X = x(A, ph, f, numpy.arange(0, duration * 1000.0, binwidth))
                        spect = analysis.simple_frequency_spectrum(X)
                        samples = numpy.array([0, 1, 2, 3]) * int(f * duration)
                        components = spect[samples]