g.metric: Extract metrics from acceleration signals

Description Usage Arguments Value Author(s) Examples

View source: R/g.metric.R

Description

Function to extract metrics from acceleration signal. Not intended for direct use by package user

Usage

1
  g.metric(Gx,Gy,Gz,n=c(),sf,ii,TW=c(),lb=c(),hb=c(),gravity = 1)

Arguments

Gx

y acceleration signal

Gy

y acceleration signal

Gz

z acceleration signal

n

filter order, only needed if a metric is selected that involves a frequency filter

sf

sample frequency

ii

Integer to indicate which metric should be derived

TW

Time window size in samples used if the metric involves a time window

lb

Cut-off frequency corresponding to the lower boundary of frequency filter

hb

Cut-off frequency corresponding to the higher boundary of frequency filter

gravity

Size of gravity, default = 1

Value

Vector of metric values at the same time resolution as the input data

Author(s)

Vincent T van Hees <vincentvanhees@gmail.com>

Examples

1
2
3
4
  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)	

PeteJWatson/ggircal documentation built on Nov. 24, 2021, 11:14 a.m.