CoA {musclesyneRgies} | R Documentation |
Centre of activity
Description
Centre of activity
Usage
CoA(x)
Arguments
x |
A time series (numeric) |
Value
The centre of activity of the time series, calculated with circular statistics
References
Martino, G. et al. Locomotor patterns in cerebellar ataxia. J. Neurophysiol. 112, 2810–2821 (2014).
Examples
# Number of users connected to the Internet through a server every minute
ts <- datasets::WWWusage[1:80]
# Calculate CoA
ts_CoA <- CoA(ts)
# Plot
plot(ts, ty = "l", xlab = "Time", ylab = "Number of users")
graphics::abline(v = ts_CoA, lwd = 2, lty = 2)
[Package musclesyneRgies version 1.2.5 Index]