weightlifting 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weightlifting.rb +5 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 122c94b1cbac09df9c1347e0aa6bb9b9d85a92ffcef13714dd13ac9a776ffb2b
4
- data.tar.gz: 3b2094f6cbffd63db8c28ef8ce059e9a7c683b7ad735f70d10cdbe3d2e3fa376
3
+ metadata.gz: aa6a1f67477efc997e93ba6b5902c7a8e2038343357c461074982546ff74f0c5
4
+ data.tar.gz: cd008fdd8ba302193c8928c4b8981f7f56a0b3eeb1d3e3e2b78bfe3718b47d81
5
5
  SHA512:
6
- metadata.gz: f95f173b6d12261c5db3c9a072a061c53b58b5654c1933f97b56f25b16e7181ac14f8b7ddd68b1f2ece27426df57de2787cd653553411ff7396fc3342b50df63
7
- data.tar.gz: 4edcf135e92b20f1f1a7abeaa33c0fd6c3b0049bc218b86ba03ce1ffd644dc52a2dafd26047e1c479cae94edf26c488d2b6543c806feb5acf88a683c4c6e7fd7
6
+ metadata.gz: 5ed7a1ec42fe2c8e3b4ef5f0c54cd96573b9a9efd76acdbe73bfe9d1688b7d73f6c29f4fc6ebfb6ad8b019777045afcc93c37b43a599bf525e4fc6c91c124076
7
+ data.tar.gz: 9e22bb90c8058a55e4bfb7eba949a666105d60a723d5bb1d39c47a951e48cb7aeb2230ccdec9fe47162c78c2d44da71e0e5486638d06e4c54d59e7c2d63455ca
data/lib/weightlifting.rb CHANGED
@@ -22,8 +22,8 @@ class Weightlifting
22
22
  # d=-0.00113732
23
23
  # e=7.01863E-06
24
24
  # f=-1.291E-08
25
- def self.wilkes_coeff_male(bodyweight_kg)
26
- wilkes(bodyweight_kg, -216.0475144, 16.2606339, -0.002388645, -0.00113732, 0.00000701863, -0.00000001291)
25
+ def self.wilks_coeff_male(bodyweight_kg)
26
+ wilks(bodyweight_kg, -216.0475144, 16.2606339, -0.002388645, -0.00113732, 0.00000701863, -0.00000001291)
27
27
  end
28
28
 
29
29
  # Value for women are:
@@ -33,8 +33,8 @@ class Weightlifting
33
33
  # d=-0.00930733913
34
34
  # e=4.731582E-05
35
35
  # f=-9.054E-08
36
- def self.wilkes_coeff_female(bodyweight_kg)
37
- wilkes(bodyweight_kg, 594.31747775582, -27.23842536447, 0.82112226871, -0.00930733913, 0.00004731582, -0.00000009054)
36
+ def self.wilks_coeff_female(bodyweight_kg)
37
+ wilks(bodyweight_kg, 594.31747775582, -27.23842536447, 0.82112226871, -0.00930733913, 0.00004731582, -0.00000009054)
38
38
  end
39
39
 
40
40
  def self.pounds_to_kilos(pounds)
@@ -59,7 +59,7 @@ class Weightlifting
59
59
  # https://en.wikipedia.org/wiki/Wilks_Coefficient
60
60
  # 500 / (a + bx^2 + cx^3 + dx^4 + ex^5 + fx^6)
61
61
  # x = Athletes bodyweight (kilograms)
62
- def self.wilkes(bodyweight, a, b, c, d, e, f)
62
+ def self.wilks(bodyweight, a, b, c, d, e, f)
63
63
  500 / (a + (b * bodyweight) + (c * bodyweight**2) + (d * bodyweight**3) + (e * bodyweight**4) + (f * bodyweight**5))
64
64
  end
65
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weightlifting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Pitts