@Override public void aggregateTemporal( BinContext ctx, Vector spatialVector, int numSpatialObs, WritableVector temporalVector) { GrowableVector measurementsVec = ctx.get(mlName); float value = spatialVector.get(0); if (!Float.isNaN(value)) { measurementsVec.add(value); } }
@Override public void computeOutput(Vector temporalVector, WritableVector outputVector) { outputVector.set(0, temporalVector.get(0)); }