Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilner committed Sep 11, 2024
1 parent d792e97 commit 0cb6c64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public static void main(String[] args) throws IOException {
double endTime = startTime + windowSize;
DiscretizedFunc subFunc = new ArbitrarilyDiscretizedFunc();
double slipAtStart = prevLastSlip;
subFunc.set(0d, 0d);
for (int i=prevIndex; i<cumulativeSlipFunc.size(); i++) {
double time = cumulativeSlipFunc.getX(i);
if (time < startTime)
Expand All @@ -106,7 +107,6 @@ public static void main(String[] args) throws IOException {
Preconditions.checkState(relTime >= 0d);
subFunc.set(relTime, relSlip);
}
subFunc.set(0d, slipAtStart);
funcs.add(subFunc);
chars.add(new PlotCurveCharacterstics(PlotLineType.SOLID, 1f, Color.GRAY));
}
Expand Down

0 comments on commit 0cb6c64

Please sign in to comment.