@@ -0,0 +1,759 @@
+package de.biomedical_imaging.traJ.features;%0A%0Aimport de.biomedical_imaging.traJ.Trajectory;%0A%0A/**%0A * Summe L%C3%A4nge Einzelschritte / Distanz start-end punk%0A *%0A */%0Apublic class StraightnessFeature extends AbstractTrajectoryFeature %7B%0A%09%0A%09private Trajectory t;%0A%09@Override%0A%09public double%5B%5D evaluate() %7B%0A%09%09double sum = 0;%0A%09%09for(int i = 1; i %3C t.size(); i++)%7B%0A%09%09%09sum += t.get(i).distance(t.get(i-1));%0A%09%09%7D%0A%09%09double straightness = sum/(t.get(0).distance(t.get(t.size()-1)));%0A%09%09return new double%5B%5D%7Bstraightness%7D;%0A%09%7D%0A%0A%09@Override%0A%09public String getName() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return %22Straightness%22;%0A%09%7D%0A%0A%09@Override%0A%09public String getShortName() %7B%0A%09%09%0A%09%09return %22STRAIGHTNESS%22;%0A%09%7D%0A%0A%09@Override%0A%09public void setTrajectory(Trajectory t) %7B%0A%09%09this.t = t;%0A%09%09%0A%09%7D%0A%0A%7D%0A

Add straightness