Click or drag to resize

RegressionTestPlanBuilder Class

For creating a RegressionTestPlan object that defines how the API should test regressions against the InputData you provide it.
Inheritance Hierarchy
SystemObject
  DegreeDays.Api.RegressionsRegressionTestPlanBuilder

Namespace: DegreeDays.Api.Regressions
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public sealed class Builder

The RegressionTestPlanBuilder type exposes the following members.

Constructors
 NameDescription
Public methodRegressionTestPlanBuilder Constructs a RegressionTestPlan.Builder with the specified TemperatureUnit (to be used for degree days) and default values for everything else.
Top
Methods
 NameDescription
Public methodAddExtraPredictorSpec Adds a specification for an extra predictor included in the InputData sent to the API, to help the API test and rank the regressions that include data for that extra predictor.
Public methodAddRequestedRegressionSpec Adds a specification for a regression that you want to receive in the response from the API.
Public methodBuild Creates a RegressionTestPlan with the configuration currently held by this Builder.
Public methodSetCustomTestCoolingBaseTemperatures(Double) Sets custom base temperatures to be used for the CDD in regressions tested by the API, assuming the temperature unit (Celsius or Fahrenheit) this Builder was constructed with.
Public methodSetCustomTestCoolingBaseTemperatures(IEnumerableTemperature) Sets custom base temperatures to be used for the CDD in regressions tested by the API.
Public methodSetCustomTestCoolingBaseTemperatures(Temperature) Sets custom base temperatures to be used for the CDD in regressions tested by the API.
Public methodSetCustomTestHeatingBaseTemperatures(Double) Sets custom base temperatures to be used for the HDD in regressions tested by the API, assuming the temperature unit (Celsius or Fahrenheit) this Builder was constructed with.
Public methodSetCustomTestHeatingBaseTemperatures(IEnumerableTemperature) Sets custom base temperatures to be used for the HDD in regressions tested by the API.
Public methodSetCustomTestHeatingBaseTemperatures(Temperature) Sets custom base temperatures to be used for the HDD in regressions tested by the API.
Public methodSetDayNormalization Sets the DayNormalization to be used in the regression process.
Public methodSetExtraPredictorSpecs Sets the specifications for the extra predictors included in the InputData sent to the API, to help the API test and rank the regressions that include data for those extra predictors.
Public methodSetRequestedRegressionSpecs(IEnumerableRegressionSpec) Sets specifications for up to 60 regressions that you want to receive in the response from the API.
Public methodSetRequestedRegressionSpecs(RegressionSpec) Sets specifications for up to 60 regressions that you want to receive in the response from the API.
Top
Remarks
Read the docs here for details on everything you can configure, and see www.degreedays.net/api/regression for more info and code samples.
Thread Safety
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.
Version History
VersionDescription
1.4 This was added in version 1.4.
See Also