Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Update generate_confmat.R
Browse files Browse the repository at this point in the history
  • Loading branch information
a3sha2 committed Apr 6, 2020
1 parent 8ea9efa commit 779779e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/generate_confmat.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ b=colnames(mat1)
outmat[is.na(outmat)]=0
outmat=as.factor(outmat)
} else if ( in2 == 'rms' ) {
mat2=cbind(mat1$trans_x,mat1$trans_y,mat1$trans_z)
rms=sqrt(mat2^2)
outmat=rowMeans(rms)
mat2=(cbind(mat1$trans_x,mat1$trans_y,mat1$trans_z))^2
outmat=sqrt(rowSum(mat2)/3)
outmat[is.na(outmat)]=0
} else if (in2 == 'fd') {
outmat = mat1$framewise_displacement
Expand Down

0 comments on commit 779779e

Please sign in to comment.