{"_id":"nearest-periodic-value","_rev":"10-216146ee1bb63a10591d2c03110af871","name":"nearest-periodic-value","description":"Find the nearest value of a discrete periodic function, given a point.","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"nearest-periodic-value","version":"1.0.0","description":"Find the nearest value of a discrete periodic function, given a point.","main":"dist/nearest-periodic-value.js","scripts":{"test":"gulp"},"repository":{"type":"git","url":"https://github.com/jmeas/nearest-periodic-value.js.git"},"keywords":["mathematics","math","period","periodic","nearest","solution","function"],"author":{"name":"Jmeas"},"license":"MIT","bugs":{"url":"https://github.com/jmeas/nearest-periodic-value.js/issues"},"homepage":"https://github.com/jmeas/nearest-periodic-value.js","devDependencies":{"6to5":"^2.12.6","browserify":"^8.1.1","chai":"^1.10.0","del":"^1.1.1","gulp":"^3.8.10","gulp-6to5":"^2.0.2","gulp-filter":"^2.0.0","gulp-istanbul":"git://github.com/jmeas/gulp-istanbul.git#isparta","gulp-jshint":"^1.9.0","gulp-livereload":"^3.4.0","gulp-load-plugins":"^0.8.0","gulp-mocha":"^2.0.0","gulp-notify":"^2.1.0","gulp-preprocess":"^1.2.0","gulp-rename":"^1.2.0","gulp-sourcemaps":"^1.3.0","gulp-template":"^2.0.0","gulp-uglifyjs":"^0.5.0","jshint-stylish":"^1.0.0","mocha":"^2.1.0","run-sequence":"^1.0.2","sinon":"^1.12.2","sinon-chai":"^2.6.0","vinyl-source-stream":"^1.0.0"},"gitHead":"e23c4e48742d1531e02ecdc1b5ecbf08525558e6","_id":"nearest-periodic-value@1.0.0","_shasum":"447e18c09066d63a21368c641147f3d75f2df142","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.13","_npmUser":{"name":"jmeas","email":"jellyes2@gmail.com"},"maintainers":[{"name":"jmeas","email":"jellyes2@gmail.com"}],"dist":{"shasum":"447e18c09066d63a21368c641147f3d75f2df142","tarball":"https://registry.npmjs.org/nearest-periodic-value/-/nearest-periodic-value-1.0.0.tgz","integrity":"sha512-/c6bX9VmAXZLoUt8JegObPFcPI4vGWUwCPxHUgc5sMriSDL8r8Bu/3W78GrwZTwgrRPi938iixk0Q4ClLskSWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcfStdlLy2EsUeVEIfYmOBckStWmIeVAiFYJwMx2sHWAiEA2hFDonP3jtA+oXNCDK/hQsBw81C5PvvD5YaIBfbcyNc="}]}},"1.0.1":{"name":"nearest-periodic-value","version":"1.0.1","description":"Find the nearest value of a discrete periodic function, given a point.","main":"dist/nearest-periodic-value.js","scripts":{"test":"gulp"},"repository":{"type":"git","url":"https://github.com/jmeas/nearest-periodic-value.js.git"},"keywords":["mathematics","math","period","periodic","nearest","solution","function"],"author":{"name":"Jmeas"},"license":"MIT","bugs":{"url":"https://github.com/jmeas/nearest-periodic-value.js/issues"},"homepage":"https://github.com/jmeas/nearest-periodic-value.js","devDependencies":{"6to5":"^2.12.6","browserify":"^8.1.1","chai":"^1.10.0","del":"^1.1.1","gulp":"^3.8.10","gulp-6to5":"^2.0.2","gulp-filter":"^2.0.0","gulp-istanbul":"git://github.com/jmeas/gulp-istanbul.git#isparta","gulp-jshint":"^1.9.0","gulp-livereload":"^3.4.0","gulp-load-plugins":"^0.8.0","gulp-mocha":"^2.0.0","gulp-notify":"^2.1.0","gulp-preprocess":"^1.2.0","gulp-rename":"^1.2.0","gulp-sourcemaps":"^1.3.0","gulp-template":"^2.0.0","gulp-uglifyjs":"^0.5.0","jshint-stylish":"^1.0.0","mocha":"^2.1.0","run-sequence":"^1.0.2","sinon":"^1.12.2","sinon-chai":"^2.6.0","vinyl-source-stream":"^1.0.0"},"gitHead":"f209f6d215c69b3568db1f5d33d684391903444a","_id":"nearest-periodic-value@1.0.1","_shasum":"0010de9f6bd0c9a400b3c77ed92ec7f0324855c8","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.13","_npmUser":{"name":"jmeas","email":"jellyes2@gmail.com"},"maintainers":[{"name":"jmeas","email":"jellyes2@gmail.com"}],"dist":{"shasum":"0010de9f6bd0c9a400b3c77ed92ec7f0324855c8","tarball":"https://registry.npmjs.org/nearest-periodic-value/-/nearest-periodic-value-1.0.1.tgz","integrity":"sha512-JjA73ENTryON47JzoYZaVd1VRh4YoYNSe5M4WhWhAt4OQUnRuUpJ1ygKWgJ4zUCh9bvW4JSXLQCUe+9OlYeOdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBt7pCrxbcpb6kRGbbSJj8c7rLImnaiIFpC8d+PwugEQIgKSk9bit/Bmpxh2Lq0j+gq8XLoEXV8P0v2Rg8CGkNPVk="}]}},"1.1.0":{"name":"nearest-periodic-value","version":"1.1.0","description":"Find the nearest value of a discrete periodic function, given a point.","main":"dist/nearest-periodic-value.js","scripts":{"test":"gulp"},"repository":{"type":"git","url":"https://github.com/jmeas/nearest-periodic-value.js.git"},"keywords":["mathematics","math","period","periodic","nearest","solution","function"],"author":{"name":"Jmeas"},"license":"MIT","bugs":{"url":"https://github.com/jmeas/nearest-periodic-value.js/issues"},"homepage":"https://github.com/jmeas/nearest-periodic-value.js","devDependencies":{"6to5":"^2.12.6","browserify":"^8.1.1","chai":"^1.10.0","del":"^1.1.1","gulp":"^3.8.10","gulp-6to5":"^2.0.2","gulp-filter":"^2.0.0","gulp-istanbul":"git://github.com/jmeas/gulp-istanbul.git#isparta","gulp-jshint":"^1.9.0","gulp-livereload":"^3.4.0","gulp-load-plugins":"^0.8.0","gulp-mocha":"^2.0.0","gulp-notify":"^2.1.0","gulp-preprocess":"^1.2.0","gulp-rename":"^1.2.0","gulp-sourcemaps":"^1.3.0","gulp-template":"^2.0.0","gulp-uglifyjs":"^0.5.0","jshint-stylish":"^1.0.0","mocha":"^2.1.0","run-sequence":"^1.0.2","sinon":"^1.12.2","sinon-chai":"^2.6.0","vinyl-source-stream":"^1.0.0"},"gitHead":"46c44c0c57f24033a2f59bcf3bd471c900d8e6eb","_id":"nearest-periodic-value@1.1.0","_shasum":"c6d5f87a9e932d5d82eef2ad9aa01a23d1328d50","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.13","_npmUser":{"name":"jmeas","email":"jellyes2@gmail.com"},"maintainers":[{"name":"jmeas","email":"jellyes2@gmail.com"}],"dist":{"shasum":"c6d5f87a9e932d5d82eef2ad9aa01a23d1328d50","tarball":"https://registry.npmjs.org/nearest-periodic-value/-/nearest-periodic-value-1.1.0.tgz","integrity":"sha512-81SjLmePJIAR2qyPs1GfEWY5XEFvS8+3+UYE80piGUtlrEX2vT+6X5LxdSxwWB2kpQV/4JEhUvwm4HawxgJFTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlv4Psx8eb/b4lonA7602wHGAjMd4XltMW+H1qZZloMgIgb9Zm7oKc61K2TgsKgztNNurAMiCXiD2atFynNBZ/mVc="}]}},"1.2.0":{"name":"nearest-periodic-value","version":"1.2.0","description":"Find the nearest value of a discrete periodic function, given a point.","main":"dist/nearest-periodic-value.js","scripts":{"test":"gulp"},"repository":{"type":"git","url":"https://github.com/jmeas/nearest-periodic-value.js.git"},"keywords":["mathematics","math","period","periodic","nearest","solution","function"],"author":{"name":"Jmeas"},"license":"MIT","bugs":{"url":"https://github.com/jmeas/nearest-periodic-value.js/issues"},"homepage":"https://github.com/jmeas/nearest-periodic-value.js","devDependencies":{"6to5":"^3.3.3","browserify":"^8.1.1","chai":"^1.10.0","del":"^1.1.1","esperanto":"^0.6.7","gulp":"^3.8.10","gulp-6to5":"^3.0.0","gulp-file":"^0.2.0","gulp-filter":"^2.0.0","gulp-intercept":"^0.1.0","gulp-istanbul":"^0.6.0","gulp-jshint":"^1.9.0","gulp-livereload":"^3.4.0","gulp-load-plugins":"^0.8.0","gulp-mocha":"^2.0.0","gulp-notify":"^2.1.0","gulp-plumber":"^0.6.6","gulp-preprocess":"^1.2.0","gulp-rename":"^1.2.0","gulp-sourcemaps":"^1.3.0","gulp-template":"^2.0.0","gulp-uglifyjs":"^0.5.0","isparta":"^1.0.1","jshint-stylish":"^1.0.0","mocha":"^2.1.0","run-sequence":"^1.0.2","sinon":"^1.12.2","sinon-chai":"^2.6.0","vinyl-source-stream":"^1.0.0"},"gitHead":"4bd03999d7b2292cdb8df352adaf95c871699125","_id":"nearest-periodic-value@1.2.0","_shasum":"a84fd52919a89692864d20a41468313d255905c6","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.13","_npmUser":{"name":"jmeas","email":"jellyes2@gmail.com"},"maintainers":[{"name":"jmeas","email":"jellyes2@gmail.com"}],"dist":{"shasum":"a84fd52919a89692864d20a41468313d255905c6","tarball":"https://registry.npmjs.org/nearest-periodic-value/-/nearest-periodic-value-1.2.0.tgz","integrity":"sha512-HbqDAouZcYmCYH+RXhhkgAc3SVNIZ64V5qNM3rccVfUxmRigFPHjLNm5k1cLVHeD0FKxWaFQsW/fffNyyXGMPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqEJhrMM+HFgtkx5vbirhYUDADqQtKqNe7snBt3ZzV8wIgC3R5NZz7GcnOwtuNKMDBJbYcvW94/03t1o6Ids5YVpo="}]}}},"readme":"# nearest-periodic-value.js\n[![Travis build status](http://img.shields.io/travis/jmeas/nearest-periodic-value.js.svg?style=flat)](https://travis-ci.org/jmeas/nearest-periodic-value.js)\n[![Code Climate](https://codeclimate.com/github/jmeas/nearest-periodic-value.js/badges/gpa.svg)](https://codeclimate.com/github/jmeas/nearest-periodic-value.js)\n[![Test Coverage](https://codeclimate.com/github/jmeas/nearest-periodic-value.js/badges/coverage.svg)](https://codeclimate.com/github/jmeas/nearest-periodic-value.js)\n[![Dependency Status](https://david-dm.org/jmeas/nearest-periodic-value.js.svg)](https://david-dm.org/jmeas/nearest-periodic-value.js) \n[![devDependency Status](https://david-dm.org/jmeas/nearest-periodic-value.js/dev-status.svg)](https://david-dm.org/jmeas/nearest-periodic-value.js#info=devDependencies)\n\nFind the nearest value of a discrete periodic function, given a point.\n\n### What are discrete periodic functions?\n\nPeriodic functions are functions that repeat. Discrete functions are functions whose values do not\nconnect. An example of a discrete periodic function is the function of \"Wednesdays\" on a calendar.\nWednesdays are discrete values along a timeline, and they repeat every 7 days.\n\n### Terminology\n\nThe members of a periodic function's output are the \"values.\" A single member is a \"value.\"\n\nThe interval that the function repeats along is the \"period.\"\n\nA \"point\" is any value in the domain of the function.\n\n### API\n\n##### `nearestPeriodicValue(point, value, period)`\n\nFind the nearest value to `point`. Supply a `value` from the codomain of the function, and its `period`.\n\n### FAQ\n\n**What if my point is equidistant between two values?**\n\nThe value in front of your point will be chosen.\n","maintainers":[{"name":"jmeas","email":"jellyes2@gmail.com"}],"time":{"modified":"2022-06-20T23:23:49.225Z","created":"2015-01-29T17:19:31.232Z","1.0.0":"2015-01-29T17:19:31.232Z","1.0.1":"2015-01-30T06:52:13.127Z","1.1.0":"2015-01-30T20:18:21.496Z","1.2.0":"2015-02-03T06:03:45.504Z"},"homepage":"https://github.com/jmeas/nearest-periodic-value.js","keywords":["mathematics","math","period","periodic","nearest","solution","function"],"repository":{"type":"git","url":"https://github.com/jmeas/nearest-periodic-value.js.git"},"author":{"name":"Jmeas"},"bugs":{"url":"https://github.com/jmeas/nearest-periodic-value.js/issues"},"license":"MIT","readmeFilename":"README.md"}