@@ -0,0 +1,949 @@
+package de.biomedical_imaging.traJ.features;%0A%0Aimport javax.vecmath.Point3d;%0A%0Aimport de.biomedical_imaging.traJ.Trajectory;%0A%0A/**%0A * Maximum distance from start point%0A * @author Thorsten Wagner%0A *%0A */%0Apublic class MaxDistanceFromStartPointFeature extends AbstractTrajectoryFeature%7B%0A%09Trajectory t;%0A%09%0A%09public MaxDistanceFromStartPointFeature(Trajectory t) %7B%0A%09%09this.t = t;%0A%09%7D%0A%09%0A%09@Override%0A%09public double%5B%5D evaluate() %7B%0A%09%09double maxDist = Double.MIN_VALUE;%0A%09%09Point3d start = t.get(0);%0A%09%09%0A%09%09for(int i = 1; i %3C t.size(); i++)%7B%0A%09%09%09double d =start.distance(t.get(i));%0A%09%09%09%0A%09%09%09if(d %3E maxDist)%7B%0A%09%09%09%09maxDist = d;%0A%09%09%09%7D%0A%09%09%7D%0A%09%0A%09%09return new double%5B%5D%7BmaxDist%7D;%0A%09%7D%0A%0A%09@Override%0A%09public String getName() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return %22Max distances from start point%22;%0A%09%7D%0A%0A%09@Override%0A%09public String getShortName() %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return %22MaxDist%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 feature: maximum distance from start point