Click or drag to resize

RegressionResponse Class

Contains a selection of the regressions that the API tested against your RegressionRequest, with the Regression that gave the best statistical fit listed first.
Inheritance Hierarchy
SystemObject
  DegreeDays.ApiResponse
    DegreeDays.Api.RegressionsRegressionResponse

Namespace: DegreeDays.Api.Regressions
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public sealed class RegressionResponse : Response

The RegressionResponse type exposes the following members.

Properties
 NameDescription
Public propertyMetadata Gets a non-null ResponseMetadata object containing metadata sent back with the response from the API servers, including details of the account's current rate limit.
(Inherited from Response)
Public propertySources Gets the non-null, non-empty list of source(s) (essentially weather stations) that were used to generate the degree days used for the regressions in this response.
Public propertyStationId Gets the non-null, non-empty canonical ID of the weather station or combination of weather stations that supplied the temperature data used to calculate the degree days used for the regressions in this response.
Public propertyTargetLongLat Gets the LongLat that specifies the geographic position of the Location from the RegressionRequest that led to this response.
Top
Methods
 NameDescription
Public methodEquals Returns true if obj is a RegressionResponse with equal values apart from the Metadata (which is not considered in the equality test).
(Overrides ObjectEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ObjectGetHashCode)
Public methodGetRegressions Returns a non-null, non-empty, best-first ordered list of Regression objects, or throws a SourceDataException if the API could not generate regressions because there was not enough good weather data for the Location specified in your RegressionRequest.
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ObjectToString)
Top
Thread Safety
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
Version History
VersionDescription
1.4 This was added in version 1.4.
See Also