Skip to contents

A common rule of comparison for the fun argument in wrtest and wreg. A winner has all its components greater than or equal to those of the loser, and strictly so for at least one component.

Usage

wprod(y1, y0)

Arguments

y1

A \(K\)-dimensional vector \(y_1\).

y0

A \(K\)-dimensional vector \(y_0\).

Value

An integer in \({1, 0, -1}\):

1

If \(y_1 \ge y_0\) component-wise, with strict inequality for at least one component.

-1

If \(y_0 \ge y_1\) component-wise, with strict inequality for at least one component.

0

Otherwise.

See also