public double calcObjective(Configuration configuration,
Map<String, BaseVariable<?>> response) {
LongTrajectoryVariable trajectoryVar =
(LongTrajectoryVariable) response.get(paramName);
LongTrajectory trajectory = trajectoryVar.getValue();
long[] data = trajectory.getData(); // new length - old length
double[] times = trajectory.getTimes();
// objective
int leastSquares = 0;
for (int i = 0; i < Math.min(data.length, realData.length); i++) {