Skip to content

Commit

Permalink
Fixed order of operations on mean and standard deviation calculations…
Browse files Browse the repository at this point in the history
… on template spectrogram
  • Loading branch information
JacobGlennAyers committed Jan 12, 2024
1 parent 5b43c74 commit 42da684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PyHa/IsoAutio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,9 @@ def generate_automated_labels_template_matching(

TEMPLATE_spec = generate_specgram(TEMPLATE, SAMPLE_RATE)
TEMPLATE_mean = np.mean(TEMPLATE_spec)
TEMPLATE_spec -= TEMPLATE_mean

TEMPLATE_std_dev = np.std(TEMPLATE_spec)
TEMPLATE_spec -= TEMPLATE_mean
n = TEMPLATE_spec.shape[0] * TEMPLATE_spec.shape[1]


Expand Down

0 comments on commit 42da684

Please sign in to comment.