MCPcopy Create free account
hub / github.com/akira-l/SEEG / get_variance

Method get_variance

scripts/data_loader/motion_preprocessor.py:33–36  ·  view source on GitHub ↗
(skeleton, joint_idx)

Source from the content-addressed store, hash-verified

31
32 def check_static_motion(self, verbose=False):
33 def get_variance(skeleton, joint_idx):
34 wrist_pos = skeleton[:, joint_idx]
35 variance = np.sum(np.var(wrist_pos, axis=0))
36 return variance
37
38 left_arm_var = get_variance(self.skeletons, 6)
39 right_arm_var = get_variance(self.skeletons, 9)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected