heaviside: Heaviside function

Description Usage Arguments Details Value Author(s)

View source: R/metrics.R

Description

Heaviside function

Usage

1

Arguments

x

number

Details

Heaviside function H(x) is defined to be 1 if x is positive and 0 otherwise. If x is 0, the function returns 0.5.

Value

1 if x is positive, 0 if it is negative and 0.5 otherwise.

Author(s)

Sangeeta Bhatia


sangeetabhatia03/assessr documentation built on Aug. 22, 2020, 9:32 a.m.