code: public void setRange( int minValue , int maxValue ) {
  		this.maxValue = maxValue;
  		this.minValue = minValue;
  
  		histogram.resize(maxValue-minValue+1);
  		histIndexes.resize(maxValue-minValue+1);
  	}
docs: Specify the data range
  
  @param minValue Minimum allowed value.  (inclusive)
  @param maxValue Maximum allowed value.  (inclusive)