Regression |
The RegressionSpec type exposes the following members.
| Name | Description | |
|---|---|---|
| CoolingBaseTemperature | Returns the base Temperature to be used for the cooling degree days in the specified regression, or null if no such cooling base temperature was specified. | |
| ExtraPredictorKeys | Gets the non-null, possibly-empty, immutable set of the keys of the extra predictors to be included in the specified regression. | |
| HeatingBaseTemperature | Returns the base Temperature to be used for the heating degree days in the specified regression, or null if no such heating base temperature was specified. |
| Name | Description | |
|---|---|---|
| Equals |
Returns true if obj is a
RegressionSpec with the same configuration as this.
(Overrides ObjectEquals(Object)) | |
| GetHashCode |
Overridden to ensure consistency with Equals.
(Overrides ObjectGetHashCode) | |
| ToString |
Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ObjectToString) | |
| WithCooling | Returns a new RegressionSpec based on this but also specifying that cooling degree days with the specified base temperature are to be included. | |
| WithExtraPredictorKeys(IEnumerableString) | Returns a new RegressionSpec based on this but also specifying that extra predictors with the specified keys are to be included. | |
| WithExtraPredictorKeys(String) | Returns a new RegressionSpec based on this but also specifying that extra predictors with the specified keys are to be included. | |
| WithHeating | Returns a new RegressionSpec based on this but also specifying that heating degree days with the specified base temperature are to be included. |
| Name | Description | |
|---|---|---|
| Baseload | The specification for a baseload-only regression (e.g. E = b*days) which can be built upon as per the example code in the remarks. |
To create a RegressionSpec, start with a baseload-only spec from Baseload (since every regression needs a baseload component), then build upon it using whichever of the WithXXX methods you need. For example:
RegressionSpec spec = RegressionSpec.Baseload
.WithHeating(Temperature.Celsius(15.5))
.WithCooling(Temperature.Celsius(21))
.WithExtraPredictorKeys("occupancy", "production");See www.degreedays.net/api/regression#requested for more information and code samples.
| Version | Description |
|---|---|
| 1.4 | This was added in version 1.4. |