plot_statistics 1.0.1 → 1.1.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.1.0
@@ -61,7 +61,9 @@ class PlotStatistics
61
61
  end
62
62
 
63
63
  k_t = AREA_OF_PLOT * sums / (number_of_clams ** 2)
64
- l_t = radius - Math.sqrt( k_t / Math::PI)
64
+
65
+ expected = number_of_clams * Math::PI * (radius ** 2) / AREA_OF_PLOT
66
+ l_t = expected - Math.sqrt( k_t / Math::PI)
65
67
 
66
68
  stats.k_ts << k_t
67
69
  stats.l_ts << l_t
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{plot_statistics}
8
- s.version = "1.0.1"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Asa Wilson"]
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 0
8
7
  - 1
9
- version: 1.0.1
8
+ - 0
9
+ version: 1.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Asa Wilson