public double CalculateZscore(ZScoreCalculationInfo calculationInfo)
        {
            if (!IsValidScoreType(calculationInfo.ZscoreType))
            {
                return(0);
            }

            return(CalculateZscore(calculationInfo.Weight, calculationInfo.LmsParameter.Median,
                                   calculationInfo.LmsParameter.Lambda, calculationInfo.LmsParameter.Sigma));
        }
예제 #2
0
        public double CalculateZscore(ZScoreCalculationInfo calculationInfo)
        {
            if (!IsValidScoreType(calculationInfo.ZscoreType))
            {
                return(0);
            }

            var bmi = Math.Round(calculationInfo.Weight / Math.Pow((calculationInfo.Height / 100), 2), 2);

            return(CalculateZscore(bmi, calculationInfo.LmsParameter.Median,
                                   calculationInfo.LmsParameter.Lambda, calculationInfo.LmsParameter.Sigma));
        }