public static double min(Collection<? extends Number> c) {
		if (c.size() == 0) {
			return 0;
		}
		double min = Double.MAX_VALUE;
		for (Number n : c) {
			if (n.doubleValue() < min) {
				min = n.doubleValue();
			}
		}
		return min;
	}