From f48b54adaaa20cff49612baca06a35efdd464ffb Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Thu, 26 Feb 2015 23:39:07 -0800 Subject: [PATCH] Switched the platform accel frequenices to a uniform log spacing with 20 values. --- src/measured_data.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/measured_data.py b/src/measured_data.py index 475ecd2..a46c074 100644 --- a/src/measured_data.py +++ b/src/measured_data.py @@ -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.