Range can be initialized with one same value for min and max. Added typedef Range<double> as Rangef.