Class FittsLaw

Permits to compute Fitt's law data based on the usage of two Interacto bindings.

Constructors

Properties

_startX: undefined | number
_startY: undefined | number
_target: undefined | Element
handler: ((evt) => void)

Type declaration

    • (evt): void
    • Parameters

      • evt: MouseEvent

      Returns void

obsSrc: Subscription
providedTarget: undefined | Element

Accessors

  • get we(): number
  • Computes the effective target width (std dev on distances).

    Returns number

    The effective target width.

Methods

  • Computes the a and b coefficent of the regression line.

    Parameters

    • effectiveTargetW: boolean = false

      If true, will consider the effective target width. Otherwise will consider the computed distances.

    Returns [a: number, b: number, r: number]

    the regression lien coefficients.

Generated using TypeDoc