Module:Harmonic entropy/doc
This is the documentation page for Module:Harmonic entropy
This module provides several functions to work with interval-related math.
Namely, the functions in this module can be called from other modules by using require('Module:Interval') and calling the _-prefixed functions.
Functions
to_cents(ratio, prec)returns the measure in cents of an interval ratio, rounded to a precision ofprecdecimal places. Parameterprecdefaults to 3 if it is omitted.harmonic_entropy(c, ratios, deviation, norm)computes harmonic Shannon entropy of an interval ofccents acrossratioswith a Gaussian with standarddeviation(also in cents) and anormassociated with theratios.