Module:Harmonic entropy/doc: Difference between revisions
Jump to navigation
Jump to search
m Documentation update |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
This module provides | {{documentation| | ||
{{dochead|header=none}}{{lua|Limits|Rational}} | |||
This module provides a means to calculate harmonic Shannon entropy of a particular interval. | |||
It can be called from other modules by using <code>require("Module:Harmonic entropy")</code> and calling the <code>_</code>-prefixed functions. | |||
== Functions == | === Functions === | ||
; <code>harmonic_entropy(c, ratios, deviation, norm)</code> | |||
: Computes [[Harmonic entropy#Basic Model: Shannon Entropy|harmonic Shannon entropy]] of an interval of <code>c</code> [[cent]]s across <code>ratios</code> with a Gaussian with standard <code>deviation</code> (also in [[cent]]s) and a <code>norm</code> associated with the <code>ratios</code>. | |||
< | }} |
Latest revision as of 12:06, 19 May 2025
This module provides a means to calculate harmonic Shannon entropy of a particular interval.
It can be called from other modules by using require("Module:Harmonic entropy")
and calling the _
-prefixed functions.
Functions
harmonic_entropy(c, ratios, deviation, norm)
- Computes harmonic Shannon entropy of an interval of
c
cents acrossratios
with a Gaussian with standarddeviation
(also in cents) and anorm
associated with theratios
.