Class: EncodingEstimator::SingleDetectionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/encoding_estimator/detector.rb

Overview

Class to store a detection score of a single combination of a conversion and its evaluation score

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, score) ⇒ SingleDetectionResult

Initialize a new object from a conversion identifier key and a score

Parameters:

  • key (String)

    Conversion identifier key

  • score (Float)

    Scoring value for a combination of distribution and a conversion



58
59
60
61
# File 'lib/encoding_estimator/detector.rb', line 58

def initialize( key, score )
  @key   = key
  @score = score
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



52
53
54
# File 'lib/encoding_estimator/detector.rb', line 52

def key
  @key
end

#scoreObject (readonly)

Returns the value of attribute score.



52
53
54
# File 'lib/encoding_estimator/detector.rb', line 52

def score
  @score
end