public static final class DegreeDaysRegressionComponent.Builder extends RegressionComponent.Builder<DegreeDaysRegressionComponent.Builder>
DegreeDaysRegressionComponent
objects e.g. for testing
purposes.Instances of this builder class are designed for single-threaded use only. It's fine to create and use instances in multiple concurrent threads, but, in the absence of external synchronization, the use of each individual builder instance should be restricted to one thread only.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DegreeDaysRegressionComponent |
build() |
DegreeDaysRegressionComponent.Builder |
setBaseTemperature(Temperature baseTemperature) |
DegreeDaysRegressionComponent.Builder |
setSampleDegreeDaysDataSet(DatedDataSet sampleDegreeDaysDataSet) |
DegreeDaysRegressionComponent.Builder |
setSampleDegreeDaysTotal(DataValue sampleDegreeDaysTotal) |
setCoefficient, setCoefficientPValue, setCoefficientStandardError
public DegreeDaysRegressionComponent.Builder setBaseTemperature(Temperature baseTemperature)
public DegreeDaysRegressionComponent.Builder setSampleDegreeDaysDataSet(DatedDataSet sampleDegreeDaysDataSet)
public DegreeDaysRegressionComponent.Builder setSampleDegreeDaysTotal(DataValue sampleDegreeDaysTotal)
public DegreeDaysRegressionComponent build()
build
in class RegressionComponent.Builder<DegreeDaysRegressionComponent.Builder>
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.