Click or drag to resize

RegressionRequest Constructor

Constructs a RegressionRequest with the specified Location, InputData, and RegressionTestPlan.

Namespace: DegreeDays.Api.Regressions
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public RegressionRequest(
	Location location,
	InputData inputData,
	RegressionTestPlan testPlan
)

Parameters

location  Location
The location for which the API should generate degree days to use in the regressions it tests against the InputData. Cannot be null.
inputData  InputData
The dated records of energy usage and any extra-predictor data to be used in the regressions tested by the API. Cannot be null.
testPlan  RegressionTestPlan
Defining how the API should test regressions against the InputData. Cannot be null, must have an ExtraPredictorSpec for any extra-predictor keys used in inputData, and, if it has any RequestedRegressionSpecs, they must not contain any extra-predictor keys that do not have data in inputData.
Exceptions
ExceptionCondition
ArgumentNullExceptionlocation, inputData, or testPlan are null.
ArgumentExceptioninputData contains extra-predictor data but testPlan does not contain an ExtraPredictorSpec for each extra-predictor key included, or if testPlan contains a requested RegressionSpec with an extra-predictor key that does not have data in inputData.
See Also