Hi Lydia,
you can use a variable outside the scope of the normal filter (the one that you define inline, if I understand correctly), like this:
final int filterParameter = 0;
dataset.filter(new FilterFunction<Integer, Integer, Double> () {
@Override
public boolean filter(Integer value) {
return value == filterParameter;
}
}
The only catch is that you have to make the variable final.
Does this answer your question? Hope I've been helpful.
Best,
Stefano