mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-08 20:12:23 +00:00
Fixed a smaller issue inside the lagrange interpolation. Differences in higher corner cases remain.
This commit is contained in:
1 parent
e978115e63
commit
96bcfdba62
1 file changed
+1
-1
+1
-1
@@ -231,7 +231,7 @@ public class ORCPerformanceCurveImpl implements Serializable, ORCPerformanceCurv
|
||||
|
||||
// Controlling whether the gybe angle is greater then the other polars and eliminating those from the array
|
||||
int frontcutpoint = Arrays.binarySearch(allowancesTrueWindAnglesWithBeatRun, beatAngles.get(trueWindSpeed));
|
||||
int backcutpoint = Arrays.binarySearch(allowancesTrueWindAnglesWithBeatRun, gybeAngles.get(trueWindSpeed));
|
||||
int backcutpoint = Arrays.binarySearch(allowancesTrueWindAnglesWithBeatRun, gybeAngles.get(trueWindSpeed)) + 1;
|
||||
allowancesTrueWindAnglesWithBeatRun = Arrays.copyOfRange(allowancesTrueWindAnglesWithBeatRun, frontcutpoint, backcutpoint);
|
||||
|
||||
int i = -1; // after the loop, i equals the next higher available polar data for the given TWA
|
||||
|
||||
Reference in new issue
Block a user