code: private double factor(int dimension) {
      return maxima[dimension] > minima[dimension] ? maxima[dimension] - minima[dimension] : maxima[dimension] > 0 ? maxima[dimension] : 1;
    }
docs: Returns a factor for normalization in a certain dimension.
  
  The provided factor is the maximum-minimum in the specified dimension, if
  these two values differ, otherwise it is the maximum if this value differs
  from 0, otherwise it is 1.
  
  @param dimension the dimension to get a factor for normalization
  @return a factor for normalization in a certain dimension