return Math.min(getSamplesTaken(), getSampleSize());
int x = getSamplesTaken(); int y = getSampleSize(); return (x < y) ? x : y;
  public final int getNumSamples() {    return Math.min(getSamplesTaken(), getSampleSize());  }