Sha256: ac9492d7d28c948a0dd77bae55ab016b7456a6de77a1ce30ed9657e5f10a389a

Contents?: true

Size: 177 Bytes

Versions: 7

Compression:

Stored size: 177 Bytes

Contents

    /**
    * Gets normalized ratio of value inside range.
    */
    function norm(val, min, max){
        return (val - min) / (max - min);
    }
    module.exports = norm;

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
entangled-0.0.16 spec/dummy/public/node_modules/bower/node_modules/mout/math/norm.js
entangled-0.0.15 spec/dummy/public/node_modules/bower/node_modules/mout/math/norm.js
entangled-0.0.14 spec/dummy/public/node_modules/bower/node_modules/mout/math/norm.js
entangled-0.0.13 spec/dummy/public/node_modules/bower/node_modules/mout/math/norm.js
entangled-0.0.12 spec/dummy/public/node_modules/bower/node_modules/mout/math/norm.js
entangled-0.0.11 spec/dummy/public/node_modules/bower/node_modules/mout/math/norm.js
entangled-0.0.10 spec/dummy/public/node_modules/bower/node_modules/mout/math/norm.js