MCPcopy
hub / github.com/microsoft/SandDance / logp

Function logp

docs/app/js/sanddance-app.js:128848–128852  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

128846 };
128847}
128848function logp(base) {
128849 return base === Math.E ? Math.log : base === 10 && Math.log10 || base === 2 && Math.log2 || (base = Math.log(base), function(x) {
128850 return Math.log(x) / base;
128851 });
128852}
128853function reflect(f) {
128854 return function(x) {
128855 return -f(-x);

Callers 1

rescaleFunction · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected