mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 06:18:12 +00:00
Improved training of twd transitions
This commit is contained in:
1 parent
33e3215800
commit
6b3f8e55cf
5 files changed
+25
-2
No files matched your search
+6
@@ -34,4 +34,10 @@ public class ManeuverTransition {
|
||||
return toManeuverType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ManeuverTransition [distance=" + distance + ", duration=" + duration + ", fromManeuverType="
|
||||
+ fromManeuverType + ", toManeuverType=" + toManeuverType + "]";
|
||||
}
|
||||
|
||||
}
|
||||
+7
@@ -18,4 +18,11 @@ public class TwdTransition extends ManeuverTransition {
|
||||
return twdChange;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TwdTransition [twdChange=" + twdChange + ", " + super.toString() + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
+5
-1
@@ -16,10 +16,14 @@ public class TwdTransitionClassifierModelMetadata extends ContextSpecificModelMe
|
||||
|
||||
@Override
|
||||
public double[] getX(TwdTransition instance) {
|
||||
double[] x = new double[] { instance.getTwdChange().getDegrees() };
|
||||
double[] x = new double[] { getXAsSingleValue(instance) };
|
||||
return x;
|
||||
}
|
||||
|
||||
public double getXAsSingleValue(TwdTransition instance) {
|
||||
return instance.getTwdChange().getDegrees();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isContainsAllFeatures(TwdTransition instance) {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user