Skip to Content
API Referencecrossunder (element-wise crossunder)

crossunder (element-wise crossunder)

crossunder(a: Array<Number>|Number, b: Array<Number>|Number) -> Array<Boolean>

Compares arrays a and b, and returns an array containing boolean values that are true in places where the values from a cross under b, that is to say where a < b and a[-1] >= b[-1].

See also crossover