Class: CompletionKit::MetricCalibrationStats::Result
- Inherits:
-
Struct
- Object
- Struct
- CompletionKit::MetricCalibrationStats::Result
- Defined in:
- app/services/completion_kit/metric_calibration_stats.rb
Instance Attribute Summary collapse
-
#agree_count ⇒ Object
Returns the value of attribute agree_count.
-
#agreement_high ⇒ Object
Returns the value of attribute agreement_high.
-
#agreement_low ⇒ Object
Returns the value of attribute agreement_low.
-
#agreement_point ⇒ Object
Returns the value of attribute agreement_point.
-
#borderline_count ⇒ Object
Returns the value of attribute borderline_count.
-
#borderline_rate ⇒ Object
Returns the value of attribute borderline_rate.
-
#disagree_count ⇒ Object
Returns the value of attribute disagree_count.
-
#gate ⇒ Object
Returns the value of attribute gate.
-
#kappa ⇒ Object
Returns the value of attribute kappa.
-
#mae ⇒ Object
Returns the value of attribute mae.
-
#pearson ⇒ Object
Returns the value of attribute pearson.
-
#sample_size ⇒ Object
Returns the value of attribute sample_size.
Instance Method Summary collapse
- #counter_only? ⇒ Boolean
- #firm? ⇒ Boolean
- #margin ⇒ Object
- #provisional? ⇒ Boolean
- #short_to_target ⇒ Object
Instance Attribute Details
#agree_count ⇒ Object
Returns the value of attribute agree_count
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def agree_count @agree_count end |
#agreement_high ⇒ Object
Returns the value of attribute agreement_high
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def agreement_high @agreement_high end |
#agreement_low ⇒ Object
Returns the value of attribute agreement_low
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def agreement_low @agreement_low end |
#agreement_point ⇒ Object
Returns the value of attribute agreement_point
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def agreement_point @agreement_point end |
#borderline_count ⇒ Object
Returns the value of attribute borderline_count
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def borderline_count @borderline_count end |
#borderline_rate ⇒ Object
Returns the value of attribute borderline_rate
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def borderline_rate @borderline_rate end |
#disagree_count ⇒ Object
Returns the value of attribute disagree_count
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def disagree_count @disagree_count end |
#gate ⇒ Object
Returns the value of attribute gate
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def gate @gate end |
#kappa ⇒ Object
Returns the value of attribute kappa
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def kappa @kappa end |
#mae ⇒ Object
Returns the value of attribute mae
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def mae @mae end |
#pearson ⇒ Object
Returns the value of attribute pearson
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def pearson @pearson end |
#sample_size ⇒ Object
Returns the value of attribute sample_size
6 7 8 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 6 def sample_size @sample_size end |
Instance Method Details
#counter_only? ⇒ Boolean
12 13 14 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 12 def counter_only? gate == :counter end |
#firm? ⇒ Boolean
20 21 22 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 20 def firm? gate == :firm end |
#margin ⇒ Object
28 29 30 31 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 28 def margin return nil if agreement_low.nil? || agreement_high.nil? (agreement_high - agreement_low) / 2.0 end |
#provisional? ⇒ Boolean
16 17 18 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 16 def provisional? gate == :provisional end |
#short_to_target ⇒ Object
24 25 26 |
# File 'app/services/completion_kit/metric_calibration_stats.rb', line 24 def short_to_target [PROVISIONAL_MIN - sample_size, 0].max end |