PreferredChoice

api/degree-plan. PreferredChoice

Class that can calculate the preferred choice given an array of interests.

Constructor

new PreferredChoice(choices, interestIDs)

Source:

Creates a new PreferredChoice instance given the array of choices and array of interestIDs.

Parameters:
Name Type Description
choices
interestIDs

Methods

getBestChoices() → {*}

Source:

Returns an array of the choices that best match the interestIDs.

Returns:

an array of the choices that best match the interests.

Type
*

hasPreferences() → {boolean}

Source:

Returns true if there are any preferences.

Returns:

true if max !== 0.

Type
boolean