Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class NumericalScale _ Inherits CategoricalScale |
| C# |
|---|
public class NumericalScale : CategoricalScale |
| C++ |
|---|
public ref class NumericalScale : public CategoricalScale |
Methods
| Icon | Type | Description |
|---|---|---|
| Equals(Object) | ||
| Finalize() | ||
| GetBounds() |
Gets an array containing the bounds of the NumericalScale.
| |
| GetCaption(Int32) |
Gets a textual representation of the level at the specified index.
| |
| GetCaptions() |
Gets an array containing the captions of the levels in this CategoricalScale.
| |
| GetComparer() |
Gets an IComparer object that can be used to compare the levels of this CategoricalScale.
| |
| GetEnumerator() |
Returns an IEnumerator object that can be used to iterate through the levels of the NumericalScale.
| |
| GetHashCode() | Serves as a hash function for a particular type. | |
| GetLevelIndex(Object) |
Gets the index of the specified level in this CategoricalScale.
| |
| GetLevels() |
Gets an array containing the levels of this CategoricalScale.
| |
| GetLowerBound(Int32) |
Gets the lower bound of the interval with the specified index.
| |
| GetType() | Gets the Type of the current instance. | |
| GetUpperBound(Int32) |
Gets the upper bound of the interval with the specified index.
| |
| Map(Object) |
Gets the index of the interval containing a value.
| |
| Map(Object, IFormatProvider) |
Gets the index of the interval containing a value.
| |
| Map(Double[]()) |
Gets the indexes of the intervals containing a set of values.
| |
| Map(Object[](), IFormatProvider) |
Gets the indexes of the intervals containing a set of values.
| |
| Map(Vector) |
Gets the indexes of the intervals containing a set of values.
| |
| Map(Double) |
Gets the index of the interval containing a value.
| |
| Map(Object[]()) |
Returns an array of indexes corresponding to the
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| ToString() |
Constructors
| Icon | Type | Description |
|---|---|---|
| NumericalScaleNew(Double[](), SpecialBins) |
Constructs a new NumericalScale using the specified boundaries.
| |
| NumericalScaleNew(Double[]()) |
Constructs a new NumericalScale using the specified boundaries.
| |
| NumericalScaleNew(Double, Double, Int32, SpecialBins) |
Constructs a new NumericalScale with equally spaced intervals over the specified range.
| |
| NumericalScaleNew(Double, Double, Int32) |
Constructs a new NumericalScale with equally spaced intervals over the specified range.
|
Properties
| Icon | Type | Description |
|---|---|---|
| Count |
Gets the number of intervals.
| |
| IsOrdered |
Gets a value that indicates whether the categorical scale is ordered or unordered.
| |
| Item(Int32) |
Gets the specified interval on this NumericalScale.
In C#, this property is the indexer for the NumericalScale class. |
Remarks
There are two ways to supply the intervals. The first is to supply an array containing the boundaries of the intervals. Every value except the first and the last acts both as the upper bound of one interval and the lower bound of the next. The second way is to supply an interval and a number of intervals. In this case, the interval is divided into the specified number of subintervals, each corresponding to a category.
NumericalScale inherits from CategoricalScale. The intervals of the NumericalScale correspond to the levels of the CategoricalScale.
The Map(Object) method maps a real number to an interval. Overloads are available that map many values in one operatioin
Using a NumericalScale, a NumericalVariable can be transformed into a CategoricalVariable. A NumericalScale object is also used by the Histogram class to map values to histogram bins.