positioned-comparative-selection

2.1.0 • Public • Published

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

  • id string ID of the item
  • ranked boolean whether the item needs ranking or not
  • middle boolean whether the item belongs to the middle range or not
  • ability number? ability (or null)
  • se number? standard error (or null)

Comparison

Type: object

Properties

  • a string ID of the A item
  • b string ID of the B item
  • selected string? The ID of the selected item (i.e. either the value of a or b, Or null)

Options

Type: object

Properties

  • maxComparisonsPerItem number maximum number of comparisons per item
  • minReliability number minimum reliability necessary for ranked:false items

Notification

Type: object

Properties

select

Parameters

Returns (Comparison | Notification) The result of the selection

Development

Testing

$ npm test

Linting

$ npm lint

License

Proprietary License © 2016, d-pac

Readme

Keywords

none

Package Sidebar

Install

npm i positioned-comparative-selection

Weekly Downloads

0

Version

2.1.0

License

GPL-3.0

Unpacked Size

1.24 MB

Total Files

20

Last publish

Collaborators

  • creynders