Heaviside: Heaviside step function

Usage Arguments Examples

View source: R/Heaviside.R

Usage

1
Heaviside(x, x0)

Arguments

x

variable

x0

jump discontinuity

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, x0)
{
    if (x < x0)
        return(0)
    else return(1)
  }

PhilippVWC/myBayes documentation built on Oct. 2, 2020, 8:25 a.m.