Skip to content

Commit

Permalink
Banister Windows Contiguous
Browse files Browse the repository at this point in the history
.. so we compute decay on the curves in periods between
   seasons and in the future.
  • Loading branch information
liversedge committed Jan 15, 2019
1 parent 1148e3a commit fb83864
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Metrics/Banister.cpp
Expand Up @@ -403,6 +403,12 @@ Banister::refresh()
}
}

// make them contiguous
for(int i=0; i<windows.count(); i++) {
if (i<(windows.count()-1)) windows[i].stopIndex = windows[i+1].stopIndex;
else windows[i].stopIndex = data.length()-1;
}

foreach(banisterFit f, windows) {
printd("post combined window: %s to %s, %d tests (from %d) season %ld days\n",
f.startDate.toString().toStdString().c_str(),
Expand Down

0 comments on commit fb83864

Please sign in to comment.