Skip to content

Commit

Permalink
Measures: Update dispersion - Juilland's D
Browse files Browse the repository at this point in the history
  • Loading branch information
BLKSerene committed Oct 29, 2024
1 parent 49e938d commit 56f91ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordless/wl_measures/wl_measures_dispersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def griess_dp(main, freqs):
def juillands_d(main, freqs):
freqs = numpy.array(freqs)

if numpy.sum(freqs) == 0:
if numpy.sum(freqs) == 0 or len(freqs) == 1:
d = 0
else:
cv = numpy.std(freqs) / numpy.mean(freqs)
Expand Down

0 comments on commit 56f91ca

Please sign in to comment.