Skip to content
Doug Fenstermacher edited this page Nov 24, 2016 · 1 revision

Enums

The Enums module contains two classes of identifiers for Gender and Physical Activity Levels (PAL). Developers can use these classes to provide input parameters in creating class instances, and in executing methods. These class attributes can be used to identify that the individual is of a specified gender, or that the individual is of a specified physical activity level.

The values of the attributes in these classes have no meaning in regards to calculations. These values are merely used for identifying the relevant equation to be executed.

Gender

  • Male
  • Female

PAL

Physical Activity Levels (PAL) are broad categories for expressing a person's physical activity in a daily basis. PALs are often used to estimate total energy expenditure. PALs are calculated as the ratio of TEE to BMR. The categories used in FitnessJS are:

  • Sedentary (1.0 < PAL < 1.40)
  • Low (1.40 < PAL < 1.60)
  • Active (1.6 < PAL < 1.90)
  • VeryActive (1.9 < PAL < 2.5)

"Human energy requirements: Principles and Definitions". Report of a Joint FAO/WHO/UNU Expert Consultation. Food and Agriculture Organization of the United Nations. 2004.

Clone this wiki locally