Skip to content

Commit

Permalink
Changed noise levels.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed May 13, 2015
1 parent 3385415 commit 499f0bd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/scale_motion_variation.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
trial = utils.Trial(trial_number)
_, marker_list, _ = trial._2d_inverse_dyn_input_labels()

for scale in np.linspace(0.001, 0.05, num=10):
for scale in np.linspace(0.0, 0.02, num=11):

trial.remove_precomputed_data()

Expand All @@ -33,8 +33,9 @@

shape = event_data[marker_list].shape

trial.event_data_frames[event][marker_list] += \
np.random.normal(scale=scale, size=shape)
if scale > 0.00001:
trial.event_data_frames[event][marker_list] += \
np.random.normal(scale=scale, size=shape)

trial._write_inverse_dynamics_to_disk(event)
trial._section_into_gait_cycles(event)
Expand All @@ -56,7 +57,7 @@

title = """\
{} Scheduled Gains Identified from {} Gait Cycles in Trial {}
Nominal Speed: {} m/s, Gender: {}, Variation Scaling: {}
Nominal Speed: {} m/s, Gender: {}, Variation Scaling: {:1.4f}
"""

fig.suptitle(title.format(structure.capitalize(), id_num_cycles,
Expand Down

0 comments on commit 499f0bd

Please sign in to comment.