ratios#

swordfish.function.ratios()#

If X is a vector, return X(n)X(n-1) by scanning X. The first element of the result is always null.

If X is a matrix, conduct the aforementioned calculation within each column of X. The result is a matrix with the same shape as X.

Parameters:

X (Constant) – A vector or a matrix.