plot_statistics 1.1.0 → 1.2.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/Rakefile CHANGED
@@ -14,6 +14,7 @@ begin
14
14
  gem.files.include %w(lib/plot_statistics/*.rb)
15
15
 
16
16
  gem.add_development_dependency "rspec", ">= 1.2.9"
17
+ gem.add_dependency 'fastercsv', ">= 1.5.0"
17
18
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
19
  end
19
20
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -61,9 +61,7 @@ class PlotStatistics
61
61
  end
62
62
 
63
63
  k_t = AREA_OF_PLOT * sums / (number_of_clams ** 2)
64
-
65
- expected = number_of_clams * Math::PI * (radius ** 2) / AREA_OF_PLOT
66
- l_t = expected - Math.sqrt( k_t / Math::PI)
64
+ l_t = radius - Math.sqrt( k_t / Math::PI)
67
65
 
68
66
  stats.k_ts << k_t
69
67
  stats.l_ts << l_t
@@ -1,5 +1,6 @@
1
1
  class PlotStatistics
2
2
  require 'ostruct'
3
+ require 'fastercsv'
3
4
 
4
5
  require File.dirname(__FILE__) + '/plot_statistics/circle'
5
6
  require File.dirname(__FILE__) + '/plot_statistics/clam'
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{plot_statistics}
8
- s.version = "1.1.0"
8
+ s.version = "1.2.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"]
@@ -53,11 +53,14 @@ Gem::Specification.new do |s|
53
53
 
54
54
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
55
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
56
+ s.add_runtime_dependency(%q<fastercsv>, [">= 1.5.0"])
56
57
  else
57
58
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
59
+ s.add_dependency(%q<fastercsv>, [">= 1.5.0"])
58
60
  end
59
61
  else
60
62
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
63
+ s.add_dependency(%q<fastercsv>, [">= 1.5.0"])
61
64
  end
62
65
  end
63
66
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 1.1.0
9
+ version: 1.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Asa Wilson
@@ -31,6 +31,20 @@ dependencies:
31
31
  version: 1.2.9
32
32
  type: :development
33
33
  version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: fastercsv
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 5
44
+ - 0
45
+ version: 1.5.0
46
+ type: :runtime
47
+ version_requirements: *id002
34
48
  description: This is a gem to do a Ripley's K analysis
35
49
  email: acvwilson@gmail.com
36
50
  executables: