staircase.Stairs.logical_rand#

Stairs.logical_rand(other)#

Returns a boolean-valued step function indicating where self and other are non-zero.

Equivalent to other & self. See examples below.

Parameters
otherint, float, or Stairs
Returns
Stairs

new instance representing the result of other & self

Examples

../../_images/staircase-Stairs-logical_rand-1.png