toggle menu
KSLCore
R1.1.3
jvm
switch theme
search in API
KSLCore
/
ksl.utilities
/
KSLArrays
/
lag
lag
fun
lag
(
x
:
DoubleArray
,
k
:
Int
=
1
)
:
DoubleArray
inline
fun
<
T
>
lag
(
x
:
Array
<
T
>
,
k
:
Int
=
1
)
:
Array
<
T
>
Returns a new array of size (x.size -k) that is lagged by k elements yi = xi+k for i=0,1,...