Click or drag to resize

DataSpecAverage Method

Returns a non-null AverageDataSpec object with the specified Calculation and AverageBreakdown.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public static AverageDataSpec Average(
	Calculation calculation,
	AverageBreakdown averageBreakdown
)

Parameters

calculation  Calculation
Defines the way in which the degree days should be calculated in terms of their base temperature and whether they should be heating degree days or cooling degree days. Cannot be null.
averageBreakdown  AverageBreakdown
Defines the way in which the data should be broken down and the period that it should cover. Cannot be null.

Return Value

AverageDataSpec
The newly-constructed AverageDataSpec object.
Exceptions
ExceptionCondition
ArgumentNullExceptioncalculation or averageBreakdown is null.
See Also