Skip to content

Commit

Permalink
Switched the platform accel frequenices to a uniform log spacing with…
Browse files Browse the repository at this point in the history
… 20 values.
  • Loading branch information
moorepants committed Feb 27, 2015
1 parent 789ee13 commit f48b54a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/measured_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ def _generate_model_inputs(self):

self.actual['x_n'] = self.ref_noise

# Generate a random platform acceleration input.
nums = [7, 11, 16, 25, 38, 61, 103, 131, 151, 181, 313, 523]
freq = 2.0 * np.pi * np.array(nums, dtype=float) / 240.0
# Generate a random platform acceleration input with bandwidth in
# the human control regime.
start_freq = 0.03 # hz
stop_freq = 2.18 # hz

freq2 = 2.0 * np.pi * np.logspace(np.log10(start_freq),
np.log10(stop_freq), num=20)

# NOTE : This function is not deterministic and give different
# results every call.
Expand Down

0 comments on commit f48b54a

Please sign in to comment.