compute_min_max function

Compute minimum and maximum

Compute minimum and maximum

Function to compute minimum and maximum of the input vector

compute_min_max(x)

Arguments

  • x: vector

Returns

Returns a vector of length 2. The first element is min value, and the second element is max value.