powered by
Function to extract metrics from acceleration signal. Not intended for direct use by package user
g.metric(Gx,Gy,Gz,n=c(),sf,ii,TW=c(),lb=c(),hb=c(),gravity = 1)
y acceleration signal
z acceleration signal
filter order, only needed if a metric is selected that involves a frequency filter
sample frequency
Integer to indicate which metric should be derived
Time window size in samples used if the metric involves a time window
Cut-off frequency corresponding to the lower boundary of frequency filter
Cut-off frequency corresponding to the higher boundary of frequency filter
Size of gravity, default = 1
Vector of metric values at the same time resolution as the input data
# NOT RUN { Gx = runif(n=10000,min=0,max=2) Gy = runif(n=10000,min=1,max=3) Gz = runif(n=10000,min=0,max=2) EuclideanNorm = g.metric(Gx,Gy,Gz,sf=40,ii=3,gravity = 1) # }
Run the code above in your browser using DataLab