/// <summary> /// Checks, if the result has a valid result value. /// </summary> /// <param name="result">The result.</param> /// <returns>True, if the result has a valid result value.</returns> private static bool HasValidResultValue(IntegerResult result) { return(!result.IsCancelled && !double.IsNaN(result.Value) && !double.IsInfinity(result.Value)); }
/// <inheritdoc /> public double GetMetricRepresentation(IntegerResult result) { return(result.Value); }