getWeightControl static method

double getWeightControl(
  1. double weight,
  2. int sex,
  3. double height
)

体重控制量 @param: weight(kg) @param: sex(1: male; Others: Female) @param: height(cm) @result: (positive number: lose weight, negative number: gain weight), kg

Implementation

static double getWeightControl(double weight, int sex, double height) {
  final standardWeight = getStandardWeight(sex, height);
  return weight - standardWeight;
}