This function computes the virtual gyroscope signal by taking a linear combination of the individual gyroscope signals.
get_virtual_gyro(Xt, weights)
A matrix
of dimension T by p, where T is the length of the time series and p is the number of processes.
A vector
of coefficients on individual signals. All elements should be non-negative and sum to one.
A vector
of the virtual gyroscope signal.