MetricComputeResult class

Internal computation result carrier (pre-normalization output).

Constructors

MetricComputeResult({required String metricId, double? rawValue, required double normalizedValue, required MetricSourceType sourceType, double confidence = 1.0, String? error})
const

Properties

confidence double
Confidence score (0.0-1.0).
final
error String?
Error message if computation failed.
final
hashCode int
The hash code for this object.
no setterinherited
metricId String
Metric identifier.
final
normalizedValue double
Normalized value (0.0-1.0 typically).
final
rawValue double?
Raw value before normalization (nullable on error).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceType MetricSourceType
Source type for confidence attribution.
final
succeeded bool
Check if this computation succeeded.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMetricResult() MetricResult
Convert to MetricResult for the output pipeline.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited