int x = getSamplesTaken(); int y = getSampleSize(); return (x < y) ? x : y;
return (numSamples < sampleSize) ? numSamples : sampleSize;
  public final int getNumSamples() {    int x = getSamplesTaken();    int y = getSampleSize();    return (x < y) ? x : y;  }