plot_statistics 1.5.0 → 1.5.1

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.5.0
1
+ 1.5.1
@@ -22,7 +22,7 @@ ARGV.each do |filename|
22
22
  line = line.strip.split("\t")
23
23
  next if line.empty?
24
24
  x, y, number_eaten = line
25
- (5 - number_eaten).times { printf "."; live_clams << PlotStatistics::Clam.new(:x => x, :y => y) }
25
+ (5 - number_eaten.to_i).times { printf "."; live_clams << PlotStatistics::Clam.new(:x => x, :y => y) }
26
26
  number_eaten.to_i.times { printf "."; dead_clams << PlotStatistics::Clam.new(:x => x, :y => y) }
27
27
  end.compact
28
28
 
@@ -36,4 +36,4 @@ ARGV.each do |filename|
36
36
  PlotStatistics::Output.new(:clam_plot => actual_plot, :monte_carlo => monte_carlo).to_bivariate_file(output_filename)
37
37
 
38
38
  puts "Done™"
39
- end
39
+ end
@@ -26,7 +26,11 @@ class PlotStatistics
26
26
 
27
27
  def to_bivariate_file(filename)
28
28
  FasterCSV.open(filename, 'w') do |csv|
29
- csv << ['Radius', 'Live K(t)', 'Dead K(t)', 'L(t)', 'Mean Live K(t)', 'Mean Dead K(t)', 'Mean L(t)', 'Upper Live K(t)', 'Lower Live K(t)', 'Upper Dead K(t)', 'Lower Dead K(t)', 'Upper L(t)', 'Lower L(t)']
29
+ csv << [
30
+ 'Radius', 'Live K(t)', 'Dead K(t)', 'L(t)',
31
+ 'Mean Live K(t)', 'Mean Dead K(t)', 'Mean L(t)', 'Upper Live K(t)', 'Lower Live K(t)',
32
+ 'Upper Dead K(t)', 'Lower Dead K(t)', 'Upper L(t)', 'Lower L(t)'
33
+ ]
30
34
 
31
35
  (0...ClamPlot::MAX_RADIUS).each do |position|
32
36
  radius = position + 1
@@ -44,4 +48,4 @@ class PlotStatistics
44
48
  end
45
49
  end
46
50
  end
47
- end
51
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{plot_statistics}
8
- s.version = "1.5.0"
8
+ s.version = "1.5.1"
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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 0
9
- version: 1.5.0
8
+ - 1
9
+ version: 1.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Asa Wilson