This is not a function. It's a constructor
.
super(exampleSet);
means that a base class has a constructor with an ExampleSet parameter.
And this.threshold = threshold;
initialized the threshold field of the current class with the value of the parameter threshold
.