Searched refs:samples (Results 1 – 6 of 6) sorted by relevance
109 samples = length_in_secs * rate110 noise = numpy.random.standard_normal(int(samples)) * 0.005111 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples)149 samples = length_in_secs * rate151 noise = numpy.random.standard_normal(int(samples)) * noise_amplitude180 self.samples = length_in_secs * self.rate181 x = numpy.linspace(0.0, (self.samples - 1) * 1.0 / self.rate,182 self.samples)
82 self.samples = length_in_secs * self.rate84 for index in range(self.samples):92 for index in range(self.samples):124 for i in range(silence_after_playback_start_time, self.samples):
52 if FLAGS.samples:56 result = mon.take_samples(FLAGS.hz, FLAGS.samples,
751 samples = self.mon.CollectData()752 if not samples:754 collected.extend(samples)
2512 List<Long> samples = wifi.stopMonitor(); in disableNetworkMonitor() local2513 if (!samples.isEmpty()) { in disableNetworkMonitor()2516 for (Long sample : samples) { in disableNetworkMonitor()2523 double failureRate = failures * 100.0 / samples.size(); in disableNetworkMonitor()2525 if (failures < samples.size()) { in disableNetworkMonitor()2526 avgLatency = totalLatency / (samples.size() - failures); in disableNetworkMonitor()2529 mOptions.getConnCheckUrl(), samples.size() * NETWORK_MONITOR_INTERVAL / 1000, in disableNetworkMonitor()
852 List<Long> samples = new ArrayList<Long>(); in testDisableNetworkMonitor() local853 samples.add(Long.valueOf(42)); in testDisableNetworkMonitor()854 samples.add(Long.valueOf(256)); in testDisableNetworkMonitor()855 samples.add(Long.valueOf(-1)); // failure to connect in testDisableNetworkMonitor()856 EasyMock.expect(mMockWifi.stopMonitor()).andReturn(samples); in testDisableNetworkMonitor()