preceq: Preceq

View source: R/utils.R

preceqR Documentation

Preceq

Description

Calculate I(x \preceq y) = I(x < y) + 0.5 I(x = y)

Usage

preceq(x, y)

Arguments

x

numeric

y

numeric

Value

I(x \preceq y)

Examples

preceq(x = c(0, 0, 0), y = c(-1, 0, 1))
preceq(x = 0, y = c(-1, 0, 1))

ge-li/myfirstpackage documentation built on April 14, 2022, 10:45 a.m.