if (!containsTimeValues()) {
return null;
}
LinearInterpolator interpolator = new LinearInterpolator();
for (Attributes p : values) {
interpolator.addPoint(p.getAsFloat("time"), p.getAsFloat("value"));
}
return interpolator;
}
public boolean containsTimeValues() {