mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-01 18:03:59 +00:00
fixed weights / confidences in wind estimation algorithm
This commit is contained in:
1 parent
eeed5fc1e4
commit
1badfe288e
1 file changed
+2
-2
+2
-2
@@ -715,11 +715,11 @@ public abstract class TrackedRaceImpl implements TrackedRace, CourseListener {
|
||||
int numberOfBoatsRelevantForEstimate = upwindNumberOfRelevantBoats + downwindNumberOfRelevantBoats;
|
||||
BearingWithConfidenceCluster<TimePoint> resultCluster = new BearingWithConfidenceCluster<TimePoint>(weigher);
|
||||
assert upwindNumberOfRelevantBoats == 0 || reversedUpwindAverage != null;
|
||||
for (int i=0; i<upwindNumberOfRelevantBoats; i++) {
|
||||
if (upwindNumberOfRelevantBoats > 0) {
|
||||
resultCluster.add(reversedUpwindAverage);
|
||||
}
|
||||
assert downwindNumberOfRelevantBoats == 0 || downwindAverage != null;
|
||||
for (int i=0; i<downwindNumberOfRelevantBoats; i++) {
|
||||
if (downwindNumberOfRelevantBoats > 0) {
|
||||
resultCluster.add(downwindAverage);
|
||||
}
|
||||
BearingWithConfidence<TimePoint> resultBearing = resultCluster.getAverage(timePoint);
|
||||
|
||||
Reference in new issue
Block a user