Click or drag to resize

DayNormalization Structure

Defines the day normalization used in the regression process – an important consideration when periods of energy usage cover different lengths of time.
Inheritance Hierarchy
SystemObject
  SystemValueType
    DegreeDays.Api.RegressionsDayNormalization

Namespace: DegreeDays.Api.Regressions
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public struct DayNormalization : IEquatable<DayNormalization>

The DayNormalization type exposes the following members.

Methods
 NameDescription
Public methodEquals(DayNormalization) Returns true if other represents the same day normalization; false otherwise.
Public methodEquals(Object) Returns true if obj is the same DayNormalization as this; false otherwise.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberGetValues Returns an array of the available DayNormalization values.
Public methodToString Returns a non-null, non-empty string representation of this item in the format required to specify a DayNormalization in the request XML ("Weighted", "Unweighted", or "None").
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(DayNormalization, DayNormalization) Determines whether two specified DayNormalization instances are equal.
Public operatorStatic memberInequality(DayNormalization, DayNormalization) Determines whether two specified DayNormalization instances are not equal.
Top
Fields
 NameDescription
Public fieldStatic memberNone For no day normalization at all, this works fine for InputData with periods that are all the same length, but not so well for data with periods of different length.
Public fieldStatic memberUnweighted For InputData with periods of different length this is typically better than using no day normalization at all, but it's not as good as the Weighted option.
Public fieldStatic memberWeighted The recommended option, this gives the best results for InputData with periods of different length, and the weighting makes no difference if the periods are all the same length.
Top
Remarks
The best explanation of the day-normalization options is in the docs for our online regression tool (which itself uses the API internally).
Thread Safety
Instances of this struct are immutable and safe for use from multiple threads at once. The only values that can exist are those declared here as static readonly fields.
Version History
VersionDescription
1.4 This was added in version 1.4.
See Also