clip
fun <T : Comparable<T>, Number, D : Dimension> MultiArray<T, D>.clip(min: T, max: T): NDArray<T, D>
Content copied to clipboard
Clips the values in ndarray if value is not in range min..max
values bigger than max are set to max
values smaller than min are set to min
Return
NDArray of which all of its elements are in range min..max
Parameters
Throws
if min max