R/gaussian_param_by_factor.R
gaussian_param_by_factor.Rd
Calculate the parameters of Gaussian speeds
gaussian_param_by_factor(logspeeds, byFactor, states = NULL)
logspeeds | A numeric vector of speed observations (in km/h) on the (natural) log-scale, of size |
---|---|
byFactor | A vector of factors (link + time bin) of size |
state_prob | An |
gaussian_param_by_factor
returns a list of two matrices of identical dimensions m X nQ
where m = number of levels
(links + timeBins). The first list mean
contains the vector of means
for each level and state. The second list sigma2
contains the vector of variances for each level and state.