public class Calorie
extends java.lang.Object
The Harris–Benedict equations revised by Roza and Shizgal in 1984.
Men BMR = 88.362 + (13.397 x weight in kg) + (4.799 x height in cm) - (5.677 x age in years)
Women BMR = 447.593 + (9.247 x weight in kg) + (3.098 x height in cm) - (4.330 x age in years)
#### calories burned = weight in kg x MET x time in hours
#### MET: http://prevention.sph.sc.edu/tools/docs/documents_compendium.pdf
#### bicycling general 8.0
#### running jogging, general 7.0
#### walking walking the dog 3.0
####
####
Modifier and Type | Field and Description |
---|---|
static double |
bicycling
sport category, which defines the MET value
|
static double |
running
sport category, which defines the MET value
|
static double |
walking
sport category, which defines the MET value
|
static double |
weightKg
default body weight by kg if not defined by user
|
Constructor and Description |
---|
Calorie() |
Modifier and Type | Method and Description |
---|---|
static double |
CalorieBurned(double activity,
double timeHour)
weightKg = 77.0
|
static double |
CalorieBurned(double activity,
double weightKg,
double timeHour) |
static double |
CalorieBurned(double activity,
double weightKg,
double timeHour,
double heightCm,
double age,
boolean men)
use The Harris–Benedict equations revised by Roza and Shizgal in 1984.
|
public static final double bicycling
public static final double running
public static final double walking
public static final double weightKg
public static double CalorieBurned(double activity, double timeHour)
activity:
- bicycling, running, walkingtimeHour:
- hourspublic static double CalorieBurned(double activity, double weightKg, double timeHour)
activity:
- bicycling, running, walkingweightKg:
- in kgtimeHour:
- hourspublic static double CalorieBurned(double activity, double weightKg, double timeHour, double heightCm, double age, boolean men)
activity:
- bicycling, running, walkingweightKg:
- in kgtimeHour:
- hoursheightCm:
- height in cmage:
- age in yearsmen:
- true -> men ; false -> women