Diff {CVXR} | R Documentation |
Takes the k-th order differences
Description
Takes the k-th order differences
Usage
Diff(x, lag = 1, k = 1, axis = 2)
Arguments
x |
An Expression that represents a vector |
lag |
The degree of lag between differences |
k |
The integer value of the order of differences |
axis |
The axis along which to apply the function. For a 2D matrix, |
Value
Takes in a vector of length n and returns a vector of length n-k of the kth order differences
[Package CVXR version 1.0-14 Index]