pub fn step<T: Real>(edge: T, x: T) -> TExpand description
Heaviside step function: 0 if x < edge, 1 if x >= edge.
ยงExamples
use mathverse_core::ops::step;
assert_eq!(step(0.0, -1.0), 0.0);
assert_eq!(step(0.0, 0.0), 1.0);
assert_eq!(step(0.0, 1.0), 1.0);