Package | Description |
---|---|
net.degreedays.api.regression |
For using the API to run regressions against your energy-usage data.
|
Modifier and Type | Method and Description |
---|---|
static RegressionSpec |
RegressionSpec.baseload()
Returns a specification for a baseload-only regression
(e.g.
E = b*days ) which can be built upon as
per the example code. |
RegressionSpec |
Regression.spec()
Returns the non-null
RegressionSpec specifying the
components that this Regression contains, such that an
equivalent Regression can be requested in another API
request. |
RegressionSpec |
RegressionSpec.withCooling(Temperature coolingBaseTemperature)
Returns a new
RegressionSpec based on this but
also specifying that cooling degree days with the specified base
temperature are to be included. |
RegressionSpec |
RegressionSpec.withExtraPredictorKeys(java.lang.Iterable<java.lang.String> keys)
Returns a new
RegressionSpec based on this but
also specifying that extra predictors with the specified
keys are to be included. |
RegressionSpec |
RegressionSpec.withExtraPredictorKeys(java.lang.String... keys)
Returns a new
RegressionSpec based on this but
also specifying that extra predictors with the specified
keys are to be included. |
RegressionSpec |
RegressionSpec.withHeating(Temperature heatingBaseTemperature)
Returns a new
RegressionSpec based on this but
also specifying that heating degree days with the specified base
temperature are to be included. |
Modifier and Type | Method and Description |
---|---|
java.util.Set<RegressionSpec> |
RegressionTestPlan.requestedRegressionSpecs()
Returns a non-null possibly-empty set of specifications for regressions
that the API is specifically instructed to test and return (on top of any
others that it will test and potentially return anyway).
|
Modifier and Type | Method and Description |
---|---|
RegressionTestPlan.Builder |
RegressionTestPlan.Builder.addRequestedRegressionSpec(RegressionSpec requestedRegressionSpec)
Adds a specification for a regression that you want to receive in the
response from the API.
|
RegressionTestPlan.Builder |
RegressionTestPlan.Builder.setRequestedRegressionSpecs(RegressionSpec... requestedRegressionSpecs)
Sets specifications for up to 60 regressions that you want to receive
in the response from the API.
|
Modifier and Type | Method and Description |
---|---|
RegressionTestPlan.Builder |
RegressionTestPlan.Builder.setRequestedRegressionSpecs(java.lang.Iterable<RegressionSpec> requestedRegressionSpecs)
Sets specifications for up to 60 regressions that you want to receive
in the response from the API.
|
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.