KSLCore
Toggle table of contents
R1.1.9
jvm
Platform filter
jvm
Switch theme
Search in API
KSLCore
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,...