min#

swordfish.function.min()#

For one input (null values will not be compared with other elements):

  • If X is a vector, return the minimum in X.

  • If X is a matrix, return the minimum in each column of X and return a vector.

  • If X is a table, return the minimum in each column of X and return a table.

For two inputs (null values will be compared with other elements):

  • If Y is a scalar, compare it with each element in X, replace the element in X with the smaller value.

  • If Y and X are of the same type and length, compare the corresponding elements of them and return a vector containing each smaller value.

Parameters:
  • X (Constant) – A scalar/vector/matrix/table.

  • Y (Constant, optional) – A scalar, a vector of the same length as X or a matrix.