Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1026909 // normalizedAutocorrelationTableForAudioSamples

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2326L/15K).

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);
}

Author comment

Began life as a copy of #1026907

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026909
Snippet name: normalizedAutocorrelationTableForAudioSamples
Eternal ID of this version: #1026909/1
Text MD5: 082bc7c502dcb3b76ecff2a65cc858c3
Transpilation MD5: d3459c14282e5df50742d6682fc55f70
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-02 16:49:19
Source code size: 697 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 221 / 298
Referenced in: [show references]