survival 0.0.3 → 0.0.4

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.
@@ -46,9 +46,9 @@ class KaplanMeier
46
46
 
47
47
  #The median survival time is calculated as the smallest survival time
48
48
  #for which the survivor function is less than or equal to 0.5
49
- if ( (s_t <= 50.0) && (median.nil?) ){
49
+ if ( (s_t <= 50.0) && (median.nil?) )
50
50
  median = t
51
- }
51
+ end
52
52
 
53
53
  #Add to plot points
54
54
  if include_horizontal
@@ -1,3 +1,3 @@
1
1
  module Survival
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -6,7 +6,7 @@ class SurvivalTest < ActiveSupport::TestCase
6
6
 
7
7
  test 'km plot' do
8
8
  p = KaplanMeier.generate_plot_points(SurvivalSample.create_survival_objects(@@survivals))
9
- assert_equal [[0, 100], [3, 100], [3, 100.0], [4, 100.0], [4, 0.0]], p
9
+ assert_equal [[[0, 100], [3, 100], [3, 100.0], [4, 100.0], [4, 0.0]], 4], p
10
10
  end
11
11
 
12
12
  test 'survival_sample array' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: survival
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: