Class: Weightlifting
- Inherits:
-
Object
- Object
- Weightlifting
- Defined in:
- lib/weightlifting.rb
Class Method Summary collapse
- .kilos_to_pounds(kilos) ⇒ Object
- .pounds_to_kilos(pounds) ⇒ Object
-
.sinclair_coeff_female(bodyweight_kg) ⇒ Object
WOMEN: A = 0.783497476 b = 153.655 kg.
-
.sinclair_coeff_male(bodyweight_kg) ⇒ Object
MEN: A = 0.751945030 b = 175.508 kg.
-
.wilks_coeff_female(bodyweight_kg) ⇒ Object
Value for women are: a=594.31747775582 b=-27.23842536447 c=0.82112226871 d=-0.00930733913 e=4.731582E-05 f=-9.054E-08.
-
.wilks_coeff_male(bodyweight_kg) ⇒ Object
Values for men are: a=-216.0475144 b=16.2606339 c=-0.002388645 d=-0.00113732 e=7.01863E-06 f=-1.291E-08.
Class Method Details
.kilos_to_pounds(kilos) ⇒ Object
44 45 46 |
# File 'lib/weightlifting.rb', line 44 def self.kilos_to_pounds(kilos) kilos * 2.20462262185 end |
.pounds_to_kilos(pounds) ⇒ Object
40 41 42 |
# File 'lib/weightlifting.rb', line 40 def self.pounds_to_kilos(pounds) pounds / 2.20462262185 end |
.sinclair_coeff_female(bodyweight_kg) ⇒ Object
WOMEN:
A = 0.783497476
b = 153.655 kg
14 15 16 |
# File 'lib/weightlifting.rb', line 14 def self.sinclair_coeff_female(bodyweight_kg) sinclair(bodyweight_kg, 0.783497476, 153.655) end |
.sinclair_coeff_male(bodyweight_kg) ⇒ Object
MEN:
A = 0.751945030
b = 175.508 kg
7 8 9 |
# File 'lib/weightlifting.rb', line 7 def self.sinclair_coeff_male(bodyweight_kg) sinclair(bodyweight_kg, 0.751945030, 175.508) end |
.wilks_coeff_female(bodyweight_kg) ⇒ Object
Value for women are: a=594.31747775582 b=-27.23842536447 c=0.82112226871 d=-0.00930733913 e=4.731582E-05 f=-9.054E-08
36 37 38 |
# File 'lib/weightlifting.rb', line 36 def self.wilks_coeff_female(bodyweight_kg) wilks(bodyweight_kg, 594.31747775582, -27.23842536447, 0.82112226871, -0.00930733913, 0.00004731582, -0.00000009054) end |
.wilks_coeff_male(bodyweight_kg) ⇒ Object
Values for men are: a=-216.0475144 b=16.2606339 c=-0.002388645 d=-0.00113732 e=7.01863E-06 f=-1.291E-08
25 26 27 |
# File 'lib/weightlifting.rb', line 25 def self.wilks_coeff_male(bodyweight_kg) wilks(bodyweight_kg, -216.0475144, 16.2606339, -0.002388645, -0.00113732, 0.00000701863, -0.00000001291) end |