{"_id":"decaying-accumulator","_rev":"31-bb7592565a0b1c901dd5448fcce6af8e","name":"decaying-accumulator","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.0":{"name":"decaying-accumulator","version":"0.0.0","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"index.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"devDependencies":{"amdefine":"~0.0.4","underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\nThe file `demo/votes.html` lets you play with this module through an\nHTML meter and voting buttons.\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.0.0","dist":{"shasum":"62eb133283f0e67a8b660ce140f46ed997ef0b8c","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.0.0.tgz","integrity":"sha512-d6Y9CNHdfIPHstrw73rJKNXtJ4iW/hOYaHLZEIMVKqWc9pAh9kEiCGNwBYMDH4LGII/LLEbVBrmuD461xFITbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDq6qDBEuqSpjwS4zwQ1SmHv9OlTdlfY0iFuLV+t4PKVAiAzliW2934IvB07CRLtOVQ7I2r4ejDhztpOPNiVIo1nJw=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}],"directories":{}},"0.0.1":{"name":"decaying-accumulator","version":"0.0.1","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"index.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"devDependencies":{"amdefine":"~0.0.4","underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\nTry [a demo](http://begriffs.github.io/decaying-accumulator/) which ties\na graphical meter and voting buttons to this module.\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.0.1","dist":{"shasum":"2976afdc0318eeca1fda244c4a93ed577c91b232","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.0.1.tgz","integrity":"sha512-76vQIREXIPFNoqFlvIcWuVQyZ9uhfERtrYuYm8GQW9U67GUiAD8YygaQ2hsG3I0AcwFR91rbvP6uIg0JlrF+5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFx94mTAfbq50FFURT6qisDej6WrJ7iRBtz7vnm6KFciAiBMQhdV9IwEICFBMTe2kBcOsmIFDcdOK46+bcCvL2IEcA=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}],"directories":{}},"0.0.2":{"name":"decaying-accumulator","version":"0.0.2","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"index.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"devDependencies":{"amdefine":"~0.0.4","underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\n    // Create an accumulator that decays in one second\n    var DecayingAccumulator = require('DecayingAccumulator'),\n      dac = new DecayingAccumulator(1000);\n\n    dac.nudge(1);\n    // now dac.currentValue() === 1\n\n    ...\n\n    // some time later\n    // 0 <= dac.currentValue() < 1\n\n### Try [a demo](http://begriffs.github.io/decaying-accumulator/)\n\n## Running tests locally\n\n    npm install\n    node_modules/.bin/mocha\n\n(Or `npm install -g mocha` to add it to your path.)\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.0.2","dist":{"shasum":"44e45982fa8bc7213fde614682586281604d6036","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.0.2.tgz","integrity":"sha512-SAUBjlRLcaUbXiew3vc2in2n8ArI+jSORAGoWtXxq/tntyqKOTewg6VOrYtWdBRjUYtupKMj/l+NmdDxBA0aRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYCMgJjsEP2u5MBpVbr/PmyDBooWVHnvgT5QmoZOhKYAIgNbHxD9ms/g86RvBJmpGTMlOGIYGREIrLj+oskMgbZrM="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}],"directories":{}},"0.0.3":{"name":"decaying-accumulator","version":"0.0.3","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"DecayingAccumulator.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"dependencies":{"amdefine":"~0.0.4"},"devDependencies":{"underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\n    // Create an accumulator that decays in one second\n    var DecayingAccumulator = require('DecayingAccumulator'),\n      dac = new DecayingAccumulator(1000);\n\n    dac.nudge(1);\n    // now dac.currentValue() === 1\n\n    ...\n\n    // some time later\n    // 0 <= dac.currentValue() < 1\n\n### Try [a demo](http://begriffs.github.io/decaying-accumulator/)\n\n## Running tests locally\n\n    npm install\n    node_modules/.bin/mocha\n\n(Or `npm install -g mocha` to add it to your path.)\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.0.3","dist":{"shasum":"b19246b1d698f347aa75c32a83cd397b13d1281e","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.0.3.tgz","integrity":"sha512-54SXXly9XYAxuVTQvYE1bdtaKrN1Kvg8r0kg+YPEj/iviFXUDZIOP2+yk9KDx2/TXzCwbSxzzwqk24PmgjIJ4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzM0+sxKBNdIu9adQPXtOFmYAk8OzM+L91dbN2Cje6gAiEAtX5A+mLY52qfARFf6OzRXjtIfZXCnyIP9Hp0vaq8CVg="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}],"directories":{}},"0.0.4":{"name":"decaying-accumulator","version":"0.0.4","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"DecayingAccumulator.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"dependencies":{"amdefine":"~0.0.4"},"devDependencies":{"underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\n    // Create an accumulator that decays in one second\n    var DecayingAccumulator = require('DecayingAccumulator'),\n      dac = new DecayingAccumulator(1000);\n\n    dac.nudge(1);\n    // now dac.currentValue() === 1\n\n    ...\n\n    // some time later\n    // 0 <= dac.currentValue() < 1\n\n### Try [a demo](http://begriffs.github.io/decaying-accumulator/)\n\n## Running tests locally\n\n    npm install\n    node_modules/.bin/mocha\n\n(Or `npm install -g mocha` to add it to your path.)\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.0.4","dist":{"shasum":"55def5e93db45de99e8190036884789a8e8e7fb1","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.0.4.tgz","integrity":"sha512-2vZOTfmYrMs08x2mdkHFm8lmYSmgW0L1EnjktJBWKoeo957uWwekPBZhLy5t3dhiH52EF0EaBYVvNnKBWjiFIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOXpOhA5fnysZI8JwDXawqUxw/PQZVtsYuEGv/aBgX+AiBFQOMA5WkMFTwin8ffzrliOEJgZBQ6pzhvAVFGQzPLmQ=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}],"directories":{}},"0.1.0":{"name":"decaying-accumulator","version":"0.1.0","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"DecayingAccumulator.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"dependencies":{"amdefine":"~0.0.4"},"devDependencies":{"underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter","progress"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\n    // Create an accumulator that decays in one second\n    var DecayingAccumulator = require('DecayingAccumulator'),\n      dac = new DecayingAccumulator({decaySpeed: 1000});\n\n    dac.nudge(1);\n    // now dac.currentValue() === 1\n\n    ...\n\n    // some time later\n    // 0 <= dac.currentValue() < 1\n\nIndividual nudges begin to count for less if they \"bury the needle.\" The\n`currentValue` method always returns within -1 and 1 inclusive. You can\nspecify an initial scale when constructing this class.\n\n    new DecayingAccumulator({decaySpeed: 1000, currentScale: 4});\n    // now currentValue() === 0.25 after nudge(1)\n\n### Try [a demo](http://begriffs.github.io/decaying-accumulator/)\n\n## Running tests locally\n\n    npm install\n    node_modules/.bin/mocha\n\n(Or `npm install -g mocha` to add it to your path.)\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.1.0","dist":{"shasum":"5454ac8ee200b21d68916e111e0f23a51b1b9dda","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.1.0.tgz","integrity":"sha512-OWKL05DoYT9SDOvnHhQn9KAB9+fIsoYvSGnfTWKqvbJPRuT0NjbaM6M9ohMzKGPhy7JGUFYW7Z/45TVo8mXKxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmD40fBi6NdTzx4H/4zZTvTJOXZgTiCYImoYGGwlDuPAIhAKWnrw0ilLa9cR2QIeiQYLAqbapOhWLJlRVOHSAGHegY"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}],"directories":{}},"0.1.1":{"name":"decaying-accumulator","version":"0.1.1","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"DecayingAccumulator.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"dependencies":{"amdefine":"~0.0.4"},"devDependencies":{"underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter","progress"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\n    // Create an accumulator that decays in one second\n    var DecayingAccumulator = require('DecayingAccumulator'),\n      dac = new DecayingAccumulator({decaySpeed: 1000});\n\n    dac.nudge(1);\n    // now dac.currentValue() === 1\n\n    ...\n\n    // some time later\n    // 0 <= dac.currentValue() < 1\n\nIndividual nudges begin to count for less if they \"bury the needle.\" The\n`currentValue` method always returns within -1 and 1 inclusive. You can\nspecify an initial scale when constructing this class.\n\n    new DecayingAccumulator({decaySpeed: 1000, currentScale: 4});\n    // now currentValue() === 0.25 after nudge(1)\n\nIf nudges have adjusted the scale you can have it reset after a cooldown\nperiod by providing a `cooldownSpeed` argument to the constructor.\n\n### Try [a demo](http://begriffs.github.io/decaying-accumulator/)\n\n## Running tests locally\n\n    npm install\n    node_modules/.bin/mocha\n\n(Or `npm install -g mocha` to add it to your path.)\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.1.1","dist":{"shasum":"a58d9e92767fe32676959d966cc7e3d3fca69fbd","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.1.1.tgz","integrity":"sha512-hhR43AinIFTnrd4KbYzoFr8U7mINuhEWg7+tRxcLQhWzyqT/6AkH0/VJRVsWTsIQNFSN8CkV5+DO8h5amiTTzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDF8jyYPqd4ZnKYIXm23Bme105Q0p6O1YfzNbhIVrzqOwIgRaSf6NPfy0+etGOdvPMrn73dmfJAGhk4Rz+WtoAQ4Hk="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}]},"0.1.2":{"name":"decaying-accumulator","version":"0.1.2","description":"Outputs a number beween [-1, 1] which tends toward 0 over time but can be nudged","main":"DecayingAccumulator.js","scripts":{"test":"node index.js config=decaying-accumulator/test/intern"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"},"dependencies":{"amdefine":"~0.0.4"},"devDependencies":{"underscore":"~1.4.4","jshint":"~1.1.0","mocha":"~1.9.0","sinon":"~1.7.1","chai":"~1.6.0"},"keywords":["bar","animated","number","vu","meter","progress"],"author":{"name":"Joe Nelson"},"license":"MIT","readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\n### Try [a demo](http://begriffs.github.io/decaying-accumulator/)\n\n    // Create an accumulator that decays in one second\n    var DecayingAccumulator = require('DecayingAccumulator'),\n      dac = new DecayingAccumulator({decaySpeed: 1000});\n\n    dac.nudge(1);\n    // now dac.currentValue() === 1\n\n    ...\n\n    // some time later\n    // 0 <= dac.currentValue() < 1\n\nIndividual nudges begin to count for less if they \"bury the needle.\" The\n`currentValue` method always returns within -1 and 1 inclusive. You can\nspecify an initial scale when constructing this class.\n\n    new DecayingAccumulator({decaySpeed: 1000, currentScale: 4});\n    // now currentValue() === 0.25 after nudge(1)\n\nIf nudges have adjusted the scale you can have it reset after a cooldown\nperiod by providing a `cooldownSpeed` argument to the constructor.\n\n## Running tests locally\n\n    npm install\n    node_modules/.bin/mocha\n\n(Or `npm install -g mocha` to add it to your path.)\n","readmeFilename":"README.md","_id":"decaying-accumulator@0.1.2","dist":{"shasum":"35e3092e2620c0dbfc342617c483dff32f2f5da3","tarball":"https://registry.npmjs.org/decaying-accumulator/-/decaying-accumulator-0.1.2.tgz","integrity":"sha512-OIUSv9sIs6hTOWXaXSxh1CAXhwN7HS2EMXXUv54AgACvesnq2qyxEoxFkDkD9ArT1cK1TpZrrphXLm0aP5YAbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcfmBKnklkTz2RYvl0+uAnge8SmR/ID9/Q7GC6VyCIxAIhAJ39xr/stEPHG7JP7e/jlAnFwwqfGhSD+9lt0/ZCuXcg"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"begriffs","email":"cred+npm@begriffs.com"},"maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}]}},"readme":"## A nudgeable number that tends toward zero\n[![Build Status](https://travis-ci.org/begriffs/decaying-accumulator.png)](https://travis-ci.org/begriffs/decaying-accumulator)\n\nIn applications such as realtime crowd voting or an audio VU meter, we\nwant a number which spikes upward but decays to zero over time. This\nmodule captures exactly this, with no extra frills.\n\nThe file `demo/votes.html` lets you play with this module through an\nHTML meter and voting buttons.\n","maintainers":[{"name":"begriffs","email":"cred+npm@begriffs.com"}],"time":{"modified":"2022-06-14T22:19:19.132Z","created":"2013-05-09T04:13:14.128Z","0.0.0":"2013-05-09T04:13:14.937Z","0.0.1":"2013-05-09T22:57:02.821Z","0.0.2":"2013-05-10T15:55:44.804Z","0.0.3":"2013-05-11T22:40:36.612Z","0.0.4":"2013-05-12T02:57:50.442Z","0.1.0":"2013-05-15T17:39:47.344Z","0.1.1":"2013-05-17T01:07:49.586Z","0.1.2":"2013-05-17T15:50:34.555Z"},"author":{"name":"Joe Nelson"},"repository":{"type":"git","url":"git@github.com:begriffs/decaying-accumulator.git"}}