You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using shorten! to subset a CorrData, if the newlag value is not a multiple of the sampling rate, the new maxlag should be set to the nearest common multiple of the sampling rate that is less than newlag e.g. C.maxlag = newlag - (newlag % (1/C.fs)).
MWE:
julia> C =load_corr(corrfile,comp);
julia> C.fs
40.0
julia> C.maxlag
20.0
julia> newlag =16.0116.01
julia> newlag % (1/C.fs) # newlag is off sampling period by 0.01 seconds0.010000000000000675
julia>shorten!(C,newlag)
julia> C.maxlag
16.01
julia> C.maxlag == newlag
true
In this example, the true value for C.maxlag should be 16.0.
The text was updated successfully, but these errors were encountered:
When using
shorten!
to subset aCorrData
, if thenewlag
value is not a multiple of the sampling rate, the newmaxlag
should be set to the nearest common multiple of the sampling rate that is less thannewlag
e.g.C.maxlag = newlag - (newlag % (1/C.fs))
.MWE:
In this example, the true value for
C.maxlag
should be16.0
.The text was updated successfully, but these errors were encountered: