predictPairInternal: Generic function to predict which of a pair of rows has a...

View source: R/heuristics.R

predictPairInternalR Documentation

Generic function to predict which of a pair of rows has a higher criterion.

Description

Do not call this directly (which is why it is called "internal"). Instead, call predictPair. Heuristics implement this function in order to be callable with predictPair.

Usage

predictPairInternal(object, row1, row2)

Arguments

object

The object that implements predictPair, e.g. a ttb model.

row1

The first row of cues (object$cols_to_fit columns), as a one-row matrix.

row2

The second row of cues.

Value

A number in the set -1, 0, 1, where 1 means row1 is predicted to have a greater criterion, -1 means row2 is greater, and 0 is a tie.


jeanimal/heuristica documentation built on Feb. 3, 2024, 9:56 p.m.