calcCosineScale returns 0.0 for irregular input