@bdelab/jscat - v5.3.2
    Preparing search index...

    Function findClosest

    • Find the item in a given array that has the difficulty closest to the target value

      Parameters

      • inputStimuli: Stimulus[]

        an array of stimuli sorted by difficulty

      • target: number

        ability estimate

      Returns number

      the index of stimuli

      The input array of stimuli must be sorted by difficulty.