Click or drag to resize

Category Class

Represents a value that can be taken on by a categorical variable.
Inheritance Hierarchy
SystemObject
  Novacta.AnalyticsCategory

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public class Category

The Category type exposes the following members.

Properties
  NameDescription
Public propertyCode
Gets the category code.
Public propertyLabel
Gets the category label.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
Remarks

A Category instance represents a possible value of a categorical variable by means of a real number, the Code, and a string, the Label.

A Category object is immutable (read-only), because its value cannot be modified after it has been instantiated. Categories can be created only by calling method Add(Double) or Add(Double, String), adding them to a CategoricalVariable object.

Note that a category is identified by its Code or by its Label. As a consequence, a Category cannot be added to a CategoricalVariable if such variable already contains another category having the same code or the same label of the category to be added.

See Also