From 1cb6c3d47b3fd3cae0b759d67328b56cdf81a5fd Mon Sep 17 00:00:00 2001 From: crswong888 Date: Fri, 6 Nov 2020 15:00:01 -0700 Subject: [PATCH] modified a few comments in baseline correction source code (refs #296) --- include/functions/BaselineCorrection.h | 4 ++-- include/utils/BaselineCorrectionUtils.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/functions/BaselineCorrection.h b/include/functions/BaselineCorrection.h index 56933d26e7..68b2a9e0ca 100644 --- a/include/functions/BaselineCorrection.h +++ b/include/functions/BaselineCorrection.h @@ -52,10 +52,10 @@ class BaselineCorrection : public Function /// adjusted (corrected) acceleration ordinates std::vector _adj_accel; - /// object to output linearly interpolated corrected acceleration ordinates + /// linear interpolation object is applied over adjusted acceleration, i.e., AFTER correction std::unique_ptr _linear_interp; - /// function value scale factor + /// function value scale factor - final output is scale_factor * _linear_interp(_time, _adj_accel) const Real & _scale_factor; private: diff --git a/include/utils/BaselineCorrectionUtils.h b/include/utils/BaselineCorrectionUtils.h index fcc02f5d56..45be9de1aa 100644 --- a/include/utils/BaselineCorrectionUtils.h +++ b/include/utils/BaselineCorrectionUtils.h @@ -27,8 +27,8 @@ **/ namespace BaselineCorrectionUtils { -/// Evaluates an integral over a single time step with Newmark-beta method -/// Also is used as simple trapezoidal rule when gamma = 0.5. +/// Evaluates an integral over a single time step with Newmark-beta method. This reduces to a simple +/// trapezoidal integration rule when gamma = 0.5 and is used as such for displacement fits. Real newmarkGammaIntegrate(const Real & u_ddot_old, const Real & u_ddot, const Real & u_dot_old,