static double[] normalizedAutocorrelationTableForAudioSamples(short[] samples) { ret normalizedAutocorrelationTableForAudioSamples(samples, 0, l(samples)); } static double[] normalizedAutocorrelationTableForAudioSamples(short[] samples, int start, int end) { double[] table = autocorrelationTableForAudioSamples(samples, start, end); double factor = autocorrelationNormalizationFactorForAudioSamples(samples, start, end); for i over table: table[i] = doubleRatio(table[i], factor); ret table; } static double[] normalizedAutocorrelationTableForAudioSamples(short[] samples, IntRange r) { ret normalizedAutocorrelationTableForAudioSamples(samples, r.start, r.end); }