Module:Harmonic entropy: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
Remove already finished Todo
 
Line 1: Line 1:
-- TODO: this module should just be called harmonic entropy!
local limits = require("Module:Limits")
local limits = require("Module:Limits")
local rat = require("Module:Rational")
local rat = require("Module:Rational")
local p = {}
local p = {}


-- compute harmonic Shannon entropy for an interval of `c` cents
-- Compute Harmonic Shannon entropy for an interval of `c` cents
-- `c`, `deviation`: in cents
-- `c`, `deviation`: in cents
-- `ratios`: an array of rational numbers
-- `ratios`: an array of rational numbers