MCPcopy Index your code
hub / github.com/worrydream/Tangle / getQForY

Function getQForY

Examples/FilterExample.js:163–165  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

161 var qLogScaleBase = 24;
162
163 function getQForY (y) {
164 return (yBounds.max - yBounds.min) * (Math.pow(qLogScaleBase, -y/canvasHeight) - 1/qLogScaleBase) + yBounds.min;
165 }
166
167 function getYForQ (q) {
168 return -canvasHeight * Math.log((q - yBounds.min) / (yBounds.max - yBounds.min) + 1/qLogScaleBase) / Math.log(qLogScaleBase)

Callers 1

FilterExample.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected