svm: sum vector magnitude

Description Usage Arguments Examples

View source: R/svm.R

Description

svm acts identically to 'mean.epoch', with the epoch set to the sampling period. In other words, it computes the instantaneous sum of vector magnitudes of the acceleration at each record point. The function takes "AccData", array and vector input. Note that if provided with an array with 4 or more columns, columns 2 to 4 are used – the first column is regard as a timestamp and hence ignored.

Usage

1
svm(obj, sqrt)

Arguments

obj

AccData object

sqrt

Function to use to calculate SVM

Examples

1
2
dat <- read.bin(system.file("binfile/TESTfile.bin", package = "GENEAread")[1], calibrate = TRUE)
svm(dat)

GENEAread documentation built on Nov. 26, 2020, 1:08 a.m.