pub fn make_clamp<TA: 'static + Clone + TotalOrd + CheckAtom>(
    bounds: (TA, TA)
) -> Fallible<Transformation<VectorDomain<AtomDomain<TA>>, VectorDomain<AtomDomain<TA>>, SymmetricDistance, SymmetricDistance>>
Expand description

Make a Transformation that clamps numeric data in Vec<TA> to bounds.

If datum is less than lower, let datum be lower. If datum is greater than upper, let datum be upper.

Arguments

  • bounds - Tuple of inclusive lower and upper bounds.

Generics

  • TA - Atomic Type