Class: NexosisApi::ImpactMetric
- Inherits:
-
Object
- Object
- NexosisApi::ImpactMetric
- Defined in:
- lib/nexosis_api/impact_metric.rb
Overview
Class to parse the metric results of an impact analysis
Instance Attribute Summary collapse
-
#absoluteEffect ⇒ Float
Total absolute effect of the event on the dataset.
-
#pValue ⇒ Float
Statistical value used to determine the significance of the impact.
-
#relativeEffect ⇒ Float
Percentage impact of the event on the dataset.
Instance Method Summary collapse
-
#initialize(metricHash) ⇒ ImpactMetric
constructor
A new instance of ImpactMetric.
Constructor Details
permalink #initialize(metricHash) ⇒ ImpactMetric
Returns a new instance of ImpactMetric.
4 5 6 7 8 |
# File 'lib/nexosis_api/impact_metric.rb', line 4 def initialize(metricHash) metricHash.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
permalink #absoluteEffect ⇒ Float
Total absolute effect of the event on the dataset.
16 17 18 |
# File 'lib/nexosis_api/impact_metric.rb', line 16 def absoluteEffect @absoluteEffect end |
permalink #pValue ⇒ Float
Statistical value used to determine the significance of the impact.
12 13 14 |
# File 'lib/nexosis_api/impact_metric.rb', line 12 def pValue @pValue end |
permalink #relativeEffect ⇒ Float
Percentage impact of the event on the dataset.
20 21 22 |
# File 'lib/nexosis_api/impact_metric.rb', line 20 def relativeEffect @relativeEffect end |