Skip to content

Commit

Permalink
quick fix removed g.downsampling function GGIR
Browse files Browse the repository at this point in the history
Merge branch 'fix_readme' of github.com:wadpac/mechanicalshakerexperiments into fix_readme

# Conflicts:
#	R/autocalibration.R
  • Loading branch information
Anne-Linde committed Jun 25, 2024
2 parents d0693e3 + c4980d0 commit 867269d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export(structure_data)
import(foreach)
import(ggplot2)
import(ggpubr)
importFrom(GENEAread,g.downsample)
importFrom(GENEAread,read.bin)
importFrom(GGIRread,readAxivity)
importFrom(GGIRread,resample)
Expand Down
4 changes: 1 addition & 3 deletions R/autocalibration.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ autocalibration = function(data, sr, printsummary= TRUE, brand) {
D1 = g.downsample(Gx,sr,ws4,ws2); GxM2 = D1$var2
D1 = g.downsample(Gy,sr,ws4,ws2); GyM2 = D1$var2
D1 = g.downsample(Gz,sr,ws4,ws2); GzM2 = D1$var2




#sd acceleration
dim(Gx) = c(sr*ws4,ceiling(length(Gx)/(sr*ws4))); GxSD2 = apply(Gx,2,sd)
dim(Gy) = c(sr*ws4,ceiling(length(Gy)/(sr*ws4))); GySD2 = apply(Gy,2,sd)
Expand Down

0 comments on commit 867269d

Please sign in to comment.