2.1.0 • Published 7 years ago
positioned-comparative-selection v2.1.0
positioned-comparative-selection
Uses an existing ranking of items to try and position new ("to rank") items as fast as possible.
API
Item
Type: object
Properties
idstring ID of the itemrankedboolean whether the item needs ranking or notmiddleboolean whether the item belongs to the middle range or notabilitynumber? ability (ornull)senumber? standard error (ornull)
Comparison
Type: object
Properties
astring ID of the A itembstring ID of the B itemselectedstring? The ID of the selected item (i.e. either the value ofaorb, Ornull)
Options
Type: object
Properties
maxComparisonsPerItemnumber maximum number of comparisons per itemminReliabilitynumber minimum reliability necessary forranked:falseitems
Notification
Type: object
Properties
select
Parameters
payloadobject full payload objectpayload.itemsArray<Item> list of itemspayload.optionsOptions optionspayload.comparisonsArray<Comparison>? list of comparisons
Returns (Comparison | Notification) The result of the selection
Development
- Testing framework: https://mochajs.org/
- Assertion library: https://github.com/moll/js-must
- Test spies and stubs: http://sinonjs.org/
- Override dependencies: https://github.com/thlorenz/proxyquire
Testing
$ npm testLinting
$ npm lintLicense
Proprietary License © 2016, d-pac
2.1.0
7 years ago