Lines Matching full:rate
186 def noised_sine_wave(frequency, rate, noise_level): argument
190 @param rate: Sampling rate.
197 for index in range(0, rate * 2):
198 sample = 2.0 * math.pi * frequency * float(index) / float(rate)
226 def noise_level(amplitude, frequency, rate, teager_value_of_input): argument
237 @param rate: Sampling rate.
250 standard_wave = noised_sine_wave(frequency, rate, standard_noise)
270 def hilbert_analysis(signal, rate, block_size): argument
274 @param rate: Sampling rate.
311 frequency = numpy.diff(phase) / (2.0 * numpy.pi) * rate
415 rate, noise_amplitude_threshold): argument
427 @param rate: Sampling rate
439 same_event_samples = rate * DEFAULT_SAME_EVENT_SECS
449 if ((start_index - rate * NEAR_SINE_START_OR_END_SECS) <= index and
450 (index < end_index + rate * NEAR_SINE_START_OR_END_SECS)):
455 if (float(index) / rate <=
458 if (float(length - index) / rate <=
466 index_start_sec = float(index) / rate - APPEND_ZEROS_SECS
467 index_end_sec = float(index + 1) / rate - APPEND_ZEROS_SECS
471 index_end_sec = float(index + 1) / rate - APPEND_ZEROS_SECS
478 if noise_time_point[i] < float(start_index) / rate - APPEND_ZEROS_SECS:
489 rate, argument
509 @param rate: Sampling rate
532 same_event_samples = rate * DEFAULT_SAME_EVENT_SECS
533 start_time = float(start_index) / rate - APPEND_ZEROS_SECS
534 end_time = float(end_index) / rate - APPEND_ZEROS_SECS
538 now_time = float(index) / rate - APPEND_ZEROS_SECS
561 index_start_sec = float(index) / rate - APPEND_ZEROS_SECS
562 index_end_sec = float(index + 1) / rate - APPEND_ZEROS_SECS
567 index_end_sec = float(index + 1) / rate - APPEND_ZEROS_SECS
580 rate, argument
600 @param rate: Sampling rate
619 same_event_samples = rate * DEFAULT_SAME_EVENT_SECS
625 if abs(index - start_index) < rate * NEAR_START_OR_END_SECS:
627 if abs(index - end_index) < rate * NEAR_START_OR_END_SECS:
645 burst_time_points.append(float(index) / rate - APPEND_ZEROS_SECS)
653 rate, argument
669 @param rate: Sampling rate
693 same_event_samples = rate * DEFAULT_SAME_EVENT_SECS
701 if float(abs(start_index - index)) / rate < NEAR_START_OR_END_SECS:
703 if float(abs(end_index - index)) / rate < NEAR_START_OR_END_SECS:
718 changing_time.append(float(index) / rate - APPEND_ZEROS_SECS)
726 changing_time.append(float(index) / rate - APPEND_ZEROS_SECS)
741 signal, rate, argument
758 @param rate: Sampling rate
818 block_size = int(block_size_secs * rate)
820 signal = numpy.concatenate((numpy.zeros(int(rate * APPEND_ZEROS_SECS)),
822 numpy.zeros(int(rate * APPEND_ZEROS_SECS))))
827 amplitude, frequency = hilbert_analysis(signal, rate, block_size)
831 dominant_frequency = audio_analysis.spectral_analysis(signal, rate)[0][0]
857 float(start_index) / rate - APPEND_ZEROS_SECS,
858 float(end_index) / rate - APPEND_ZEROS_SECS)
868 rate,
875 rate,
886 rate,
897 rate,
908 rate,