Module:Harmonic entropy/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
m FloraC moved page Module:Interval/doc to Module:Harmonic entropy/doc without leaving a redirect: See talk
Ganaram inukshuk (talk | contribs)
put back function descriptions
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}
{{documentation|{{dochead|header=library}}
This module provides several functions to work with [[interval]]-related math. Currently, it only exists to calculate the harmonic entropy.
This module provides a means to calculate harmonic Shannon entropy of a particular interval.  


Namely, the functions in this module can be called from other modules by using <code>require('Module:Interval')</code> and calling the <code>_</code>-prefixed functions.
{{module introspection
 
| desc_harmonic_entropy=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>.}}
== 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 02:45, 31 October 2025

This module primarily serves as a library for other modules and has no corresponding template.

This module provides a means to calculate harmonic Shannon entropy of a particular interval.

To see introspection summary, see this module's main page.