Function step_scalar

Source
pub fn step_scalar<T>(edge: T, x: T) -> T
where T: Number,
Expand description

Returns 0.0 if x < edge, otherwise it returns 1.0.