private static double getDScale(int factor)
  {
	if (factor < SCALES.length)
	{
	  return SCALES[factor];
	}
	else if (factor < 2 * SCALES.length)
	{
	  return SCALES[factor - SCALES.length] * (double) SCALES[SCALES.length - 1];
	}
	else
	{
	  throw new IllegalArgumentException("Too high factor");
	}
  }