public enum DayNormalization extends java.lang.Enum<DayNormalization>
The best explanation of the day-normalization options is in the docs for our online regression tool (which itself uses the API internally).
Enum Constant and Description |
---|
NONE
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. |
UNWEIGHTED
|
WEIGHTED
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. |
Modifier and Type | Method and Description |
---|---|
static DayNormalization |
fromString(java.lang.String string)
Returns the non-null
DayNormalization with the specified
string (returned by its toString() method). |
java.lang.String |
toString()
Returns a non-null, non-empty string representation of this enum constant
in the format required to specify a
DayNormalization in the
request XML ("Weighted" , "Unweighted" , or
"None" ). |
static DayNormalization |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DayNormalization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayNormalization WEIGHTED
InputData
with periods of different length, and the weighting makes no difference
if the periods are all the same length. With this option longer periods
effectively have a greater influence on the regression coefficients than
shorter periods.public static final DayNormalization UNWEIGHTED
public static final DayNormalization NONE
InputData
with periods that are all the same length, but not so well for data with
periods of different length.public static DayNormalization[] values()
for (DayNormalization c : DayNormalization.values()) System.out.println(c);
public static DayNormalization valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
DayNormalization
in the
request XML ("Weighted"
, "Unweighted"
, or
"None"
).toString
in class java.lang.Enum<DayNormalization>
public static DayNormalization fromString(java.lang.String string) throws java.lang.IllegalArgumentException
DayNormalization
with the specified
string
(returned by its toString()
method).java.lang.NullPointerException
- if string
is null
.java.lang.IllegalArgumentException
- if string
is not one of
"Weighted"
, "Unweighted"
, or
"None"
.
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.