Improved training of twd transitions

This commit is contained in:
Vladislav Chumak committed 2019-01-07 16:12:40 +01:00
1 parent 33e3215800
commit 6b3f8e55cf
5 files changed
+25 -2

No files matched your search

@@ -34,4 +34,10 @@ public class ManeuverTransition {
return toManeuverType;
}
@Override
public String toString() {
return "ManeuverTransition [distance=" + distance + ", duration=" + duration + ", fromManeuverType="
+ fromManeuverType + ", toManeuverType=" + toManeuverType + "]";
}
}
@@ -18,4 +18,11 @@ public class TwdTransition extends ManeuverTransition {
return twdChange;
}
@Override
public String toString() {
return "TwdTransition [twdChange=" + twdChange + ", " + super.toString() + "]";
}
}
@@ -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;