Converts the variable to a CategoricalVariable
using the specified DateTimeScale.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function ToCategoricalVariable ( _ scale As DateTimeScale _ ) As CategoricalVariable |
| C# |
|---|
public CategoricalVariable ToCategoricalVariable ( DateTimeScale scale ) |
| C++ |
|---|
public: CategoricalVariable^ ToCategoricalVariable ( DateTimeScale^ scale ) |
Parameters
- scale (Extreme.Statistics.DateTimeScale)
- The DateTimeScale used to categorize the values.
Return Value
A CategoricalVariable that represents the values of the variable categorized according to scale.
Remarks
Use this method to convert a DateTimeVariable to a CategoricalVariable.
The observations are mapped to categories using the supplied DateTimeScale.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | scale is nullNothingnullptr. |