public enum RegressionTag extends java.lang.Enum<RegressionTag>
Regression
objects to indicate
why it included them in a RegressionResponse
.Enum Constant and Description |
---|
IN_SHORTLIST_RANGE
|
NOTABLE_OTHER
Indicates a regression that didn't make the
SHORTLIST , but was
considered notable. |
REQUESTED
Indicates a regression that was explicitly specified in the request as
one that should be returned.
|
SHORTLIST
Indicates a regression that was automatically selected by the API as a
shortlist regression – one that looks likely to describe the usage
data better than the others tested.
|
Modifier and Type | Method and Description |
---|---|
static RegressionTag |
fromString(java.lang.String string)
|
java.lang.String |
toString()
Returns a non-null, non-empty string representation of this enum constant
in the format used to specify a
RegressionTag in the
response XML ("Shortlist" , "NotableOther" ,
"Requested" , or "InShortlistRange" ). |
static RegressionTag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RegressionTag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegressionTag SHORTLIST
public static final RegressionTag NOTABLE_OTHER
SHORTLIST
, but was
considered notable. This might, for example, apply to the best CDD-only
regression for a set of data that correlates better with HDD than CDD, or
to a regression with shortlist-worthy stats but unexpected negative
coefficients.public static final RegressionTag REQUESTED
public static final RegressionTag IN_SHORTLIST_RANGE
SHORTLIST
even though it wasn't auto-selected to be in the shortlist (if it was it
would have the SHORTLIST
tag instead).
It is possible for none of the REQUESTED
regressions to have
this tag if none of them have statistics as good as the auto-selected
SHORTLIST
regressions.public static RegressionTag[] values()
for (RegressionTag c : RegressionTag.values()) System.out.println(c);
public static RegressionTag 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()
RegressionTag
in the
response XML ("Shortlist"
, "NotableOther"
,
"Requested"
, or "InShortlistRange"
).toString
in class java.lang.Enum<RegressionTag>
public static RegressionTag fromString(java.lang.String string) throws java.lang.IllegalArgumentException
java.lang.NullPointerException
- if string
is null
.java.lang.IllegalArgumentException
- if string
is not one of
"Shortlist"
, "NotableOther"
,
"Requested"
, or "InShortlistRange"
.
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.