Hierarchy

  • Cat

Constructors

  • Create a Cat object. This expects an single object parameter with the following keys

    Parameters

    • destructuredParam: CatInput = {}

      method: ability estimator, e.g. MLE or EAP, default = 'MLE' itemSelect: the method of item selection, e.g. "MFI", "random", "closest", default method = 'MFI' nStartItems: first n trials to keep non-adaptive selection startSelect: rule to select first n trials theta: initial theta estimate minTheta: lower bound of theta maxTheta: higher bound of theta prior: the prior distribution randomSeed: set a random seed to trace the simulation

    Returns Cat

Properties

_nItems: number
_resps: (0 | 1)[]
_rng: PRNG
_seMeasurement: number
_theta: number
_zetas: Zeta[]
itemSelect: string
maxTheta: number
method: string
minTheta: number
nStartItems: number
prior: number[][]
startSelect: string

Accessors

  • get nItems(): number
  • Returns number

  • get resps(): (0 | 1)[]
  • Returns (0 | 1)[]

  • get seMeasurement(): number
  • Returns number

  • get theta(): number
  • Returns number

Methods

  • calculate the standard error of ability estimation

    Returns void

  • Returns number

  • Returns any

  • find the next available item from an input array of stimuli based on a selection method

    remainingStimuli is sorted by fisher information to reduce the computation complexity for future item selection

    Parameters

    • stimuli: Stimulus[]

      an array of stimulus

    • itemSelect: string = ...

      the item selection method

    • deepCopy: boolean = true

      default deepCopy = true

    Returns {
        nextStimulus: Stimulus;
        remainingStimuli: Stimulus[];
    } | {
        nextStimulus: {
            difficulty: number;
            fisherInformation: number;
        };
        remainingStimuli: {
            difficulty: number;
            fisherInformation: number;
        }[];
    }

  • Parameters

    • theta: number

    Returns number

  • Parameters

    • thetaArray: number[]

    Returns number

  • return a random integer between min and max

    Parameters

    • min: number

      The minimum of the random number range (include)

    • max: number

      The maximum of the random number range (include)

    Returns number

    • random integer within the range
  • Parameters

    Returns {
        nextStimulus: {
            difficulty: number;
            fisherInformation: number;
        };
        remainingStimuli: {
            difficulty: number;
            fisherInformation: number;
        }[];
    }

    • nextStimulus: {
          difficulty: number;
          fisherInformation: number;
      }
      • difficulty: number
      • fisherInformation: number
    • remainingStimuli: {
          difficulty: number;
          fisherInformation: number;
      }[]
  • use previous response patterns and item params to calculate the estimate ability based on a defined method

    Parameters

    • zeta: Zeta | Zeta[]

      last item param

    • answer: 0 | 1 | (0 | 1)[]

      last response pattern

    • method: string = ...

    Returns void

  • Parameters

    • itemSelect: string

    Returns string

  • Parameters

    • method: string

    Returns string

  • Parameters

    • startSelect: string

    Returns string

Generated using TypeDoc