class CwCardUtils::CurveCalculator
def normalize_curve
def normalize_curve @normalized_curve = curve.sort_by { |cmc, _| cmc }.to_h.transform_values do |count| (count / @deck.count_without_lands.to_f).round(4) end end
def normalize_curve @normalized_curve = curve.sort_by { |cmc, _| cmc }.to_h.transform_values do |count| (count / @deck.count_without_lands.to_f).round(4) end end