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 +1 -1
- data/bin/bivariate_ripleys_k +2 -2
- data/lib/plot_statistics/output.rb +6 -2
- data/plot_statistics.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.1
|
data/bin/bivariate_ripleys_k
CHANGED
@@ -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 << [
|
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
|
data/plot_statistics.gemspec
CHANGED