Skip to content
Snippets Groups Projects
Commit a2c56520 authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Added commented code to smooth locally

parent ad46fac3
No related branches found
No related tags found
No related merge requests found
...@@ -436,6 +436,14 @@ class SqDistAlgorithm(Algorithm): ...@@ -436,6 +436,14 @@ class SqDistAlgorithm(Algorithm):
# performance. # performance.
r[i + 1] = gamma * (1 - alpha) * et / m r[i + 1] = gamma * (1 - alpha) * et / m
## this properly smooths SQ locally; figure out if we need an
## input parameter to control this, or if we just fix it to a
## reasonable, but static value; also, figure out how/if r
## needs to be changed -EJR 8/2016
#s[i + m] = s[i] + gamma * (1 - alpha) * et / 61.
#s[i+m-30:i+m] = s[i+m-30:i+m] + gamma * (1-alpha) * et / 61.
#s[i+1:i+30+1] = s[i+1:i+30+1] + gamma * (1-alpha) * et / 61.
# update and append to s using equation-error formulation # update and append to s using equation-error formulation
s[i + m] = s[i] + gamma * (1 - alpha) * et s[i + m] = s[i] + gamma * (1 - alpha) * et
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment