Changed LDiversity criterion: allow l to be double