Click or drag to resize

DataValue Class

Contains a degree-day value (e.g. an HDD or CDD value) and an approximate indication of its accuracy.
Inheritance Hierarchy

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public abstract class DataValue

The DataValue type exposes the following members.

Properties
 NameDescription
Public propertyPercentageEstimated Gets the number between 0 and 100 (both inclusive) indicating the extent to which the calculated Value is based on estimated data.
Public propertyValue Gets the value, which will never be NaN or infinity, and, for degree days, will always be zero or greater.
Top
Methods
 NameDescription
Public methodStatic memberCreate Returns a non-null DataValue object with the specified configuration.
Public methodEquals Returns true if obj is a DataValue object of the same type as this with an equal Value and PercentageEstimated.
(Overrides ObjectEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ObjectGetHashCode)
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ObjectToString)
Top
Remarks

This abstract class is not designed to be extended by third-party code, which is why it does not have an accessible constructor.

Thread Safety
All concrete subclasses of this abstract class are immutable. You can safely reuse them and call them from multiple threads at once.
See Also