2.1.0 • Published 7 years ago

positioned-comparative-selection v2.1.0

Weekly downloads
-
License
GPL-3.0
Repository
bitbucket
Last release
7 years ago

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

2.1.0

7 years ago