private double getMinimumNumberOfSamples(Profile profile) { return profile.getTraceCount() * minProportionOfSamples; }
@Override public void filter(Profile profile) { final double minimumNumberOfSamples = getMinimumNumberOfSamples(profile); profile.getTrees().removeIf(tree -> tree.getNumberOfSamples() < minimumNumberOfSamples); }