uniform.right

uniform.right, function

def pure uniform.right(n: number): zedfunc

Returns a zedfunc that equals 1 for integers k >= n and 0 otherwise.

Example

f = uniform.right(0)

show summary "uniform.right(0)" with
  valueAt(f, -1) as "k=-1"
  valueAt(f, 0) as "k=0"
  valueAt(f, 1) as "k=1"

This outputs the following list:

Label Value
k=-1 0
k=0 1
k=1 1

Errors

Passing a non-integer n fails with:

'uniform.right(n)' is rounding fractional numbers.

See also

User Contributed Notes
0 notes + add a note