return Float.POSITIVE_INFINITY; } else { float cost = (hitRate / countSize) * hitDistributionFunction(hitRate / accessRate); if (Float.isNaN(cost)) { throw new AssertionError(String.format("NaN Eviction Cost [hit:%f miss:%f size:%d]", hitRate, missRate, countSize));