public final class DegreeDaysRegressionComponent extends RegressionComponent
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
Modifier and Type | Class and Description |
---|---|
static class |
DegreeDaysRegressionComponent.Builder
A builder class for creating immutable
DegreeDaysRegressionComponent objects e.g. for testing
purposes. |
Modifier and Type | Method and Description |
---|---|
Temperature |
baseTemperature()
Returns the non-null base temperature of the degree days this regression
component was calculated with.
|
DatedDataSet |
sampleDegreeDaysDataSet()
Returns the non-null
DatedDataSet of the degree days this
regression component was calculated with. |
DataValue |
sampleDegreeDaysTotal()
Returns the non-null
DataValue representing the total number
of degree days across all the periods this regression component was
calculated for. |
java.lang.String |
toString()
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
|
coefficient, coefficientPValue, coefficientStandardError, equals, hashCode
public Temperature baseTemperature()
public DatedDataSet sampleDegreeDaysDataSet()
DatedDataSet
of the degree days this
regression component was calculated with.public DataValue sampleDegreeDaysTotal()
DataValue
representing the total number
of degree days across all the periods this regression component was
calculated for.
This will have a value equal to the total of all the degree-day values in
sampleDegreeDaysDataSet()
.
public java.lang.String toString()
The exact details of the representation are unspecified and subject to change.
toString
in class java.lang.Object
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.