Constructs a new DateTimeScale using bins of equal width.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	lowerBound As DateTime, _
	upperBound As DateTime, _
	unit As DateTimeUnit, _
	specialBins As SpecialBins, _
	startBehavior As BoundaryIntervalBehavior, _
	endBehavior As BoundaryIntervalBehavior, _
	offset As Integer, _
	offsetUnit As DateTimeUnit _
)
C#
public DateTimeScale (
	DateTime lowerBound,
	DateTime upperBound,
	DateTimeUnit unit,
	SpecialBins specialBins,
	BoundaryIntervalBehavior startBehavior,
	BoundaryIntervalBehavior endBehavior,
	int offset,
	DateTimeUnit offsetUnit
)
C++
public:
DateTimeScale (
	DateTime lowerBound, 
	DateTime upperBound, 
	DateTimeUnit unit, 
	SpecialBins specialBins, 
	BoundaryIntervalBehavior startBehavior, 
	BoundaryIntervalBehavior endBehavior, 
	int offset, 
	DateTimeUnit offsetUnit
)

Parameters

lowerBound (System.DateTime)
The lower bound of the time scale.
upperBound (System.DateTime)
The upper bound of the time scale.
unit (Extreme.Statistics.DateTimeUnit)
A DateTimeUnit value that specifies the width of the intervals.
specialBins (Extreme.Statistics.SpecialBins)
A SpecialBins value that indicates which additional bins to include in the DateTimeScale.
startBehavior (Extreme.Statistics.BoundaryIntervalBehavior)
A BoundaryIntervalBehavior value that specifies what to do if the first period is not a complete time unit.
endBehavior (Extreme.Statistics.BoundaryIntervalBehavior)
A BoundaryIntervalBehavior value that specifies what to do if the last period is not a complete time unit.
offset (System.Int32)
Offset from the beginning of the period specified by unit.
offsetUnit (Extreme.Statistics.DateTimeUnit)
A DateTimeUnit value specifying the unit for offset.

Remarks

Use this method to specify the behavior of the scale at the boundaries. By default, boundary intervals that do not cover an entire time unit (specified by unit) are included in the scale "as is". If a BoundaryIntervalBehavior value of Exclude is specified, such partial intervals are discarded. If a value of CompleteAndInclude is specified, the interval is extended to cover an entire time unit and the extended interval is included in the scale.

In addition, you can specify where each interval is to begin. For example, you can specify that a monthly scale should start on the 10th of each month, or that a weekly scale should start on Wednesdays.