Skip to content

Instantly share code, notes, and snippets.

@kragen
Created August 10, 2015 20:25
Show Gist options
  • Save kragen/c51ca08cb2a11f0a5581 to your computer and use it in GitHub Desktop.
Save kragen/c51ca08cb2a11f0a5581 to your computer and use it in GitHub Desktop.
private Flaunch(OrderManager om,
List<Duration> taus,
List<Duration> futureTimes,
long samplingInterval) {
this.om = om;
this.samplingInterval = samplingInterval;
for (Duration tau : taus) {
filters.add(ExponentialFilter.create(tau));
}
forwardDeltas = new long[futureTimes.size()];
for (int i = 0; i < futureTimes.size(); i++) {
List<Long> col = newArrayList();
futureColumns.add(col);
forwardDeltas[i] = futureTimes.get(i).toTimestamp();
}
}
/* obviously much more */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment