![](../icons/Help.png) | Factor Class |
Class Factor represents a categorical vector in which all elements are drawn from
a finite number of factor levels.
Inheritance Hierarchy Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax[SerializableAttribute]
public class Factor : ICloneable
<SerializableAttribute>
Public Class Factor
Implements ICloneable
[SerializableAttribute]
public ref class Factor : ICloneable
[<SerializableAttribute>]
type Factor =
class
interface ICloneable
end
The Factor type exposes the following members.
Constructors | Name | Description |
---|
![Public method Public method](../icons/pubMethod.gif) ![Code example Code example](../icons/CodeExample.png) | Factor(Object) |
Constructs a Factor instance from the given array of objects.
|
![Public method Public method](../icons/pubMethod.gif) | Factor(Object, Int32) |
Constructs a Factor instance from the given array of factor levels, and the given data array
consisting of indices into the factor levels.
|
![Public method Public method](../icons/pubMethod.gif) ![Code example Code example](../icons/CodeExample.png) | Factor(Object, Object) |
Constructs a Factor instance from the given array of objects, using the given
factor levels.
|
![Public method Public method](../icons/pubMethod.gif) ![Code example Code example](../icons/CodeExample.png) | Factor(Object, String) |
Constructs a Factor instance from the given array of objects.
|
![Public method Public method](../icons/pubMethod.gif) | Factor(Object, Int32, String) |
Constructs a Factor instance with the specified name from the given array of factor
levels, and the given data array consisting of indices into the factor levels.
|
![Public method Public method](../icons/pubMethod.gif) ![Code example Code example](../icons/CodeExample.png) | Factor(Object, Object, String) |
Constructs a Factor instance from the given array of objects, using the given
factor levels.
|
Top
Properties | Name | Description |
---|
![Public property Public property](../icons/pubProperty.gif) | Data |
Gets the categorical data for this factor.
|
![Public property Public property](../icons/pubProperty.gif) | Item |
Gets the element at the given index.
|
![Public property Public property](../icons/pubProperty.gif) | Length |
Gets the length of the data vector for this factor.
|
![Public property Public property](../icons/pubProperty.gif) | Levels |
Gets the levels of this factor.
|
![Public property Public property](../icons/pubProperty.gif) | Name |
Gets and set the name of this factor.
|
![Public property Public property](../icons/pubProperty.gif) | NumberOfLevels |
Gets the number of levels in this factor.
|
Top
Methods | Name | Description |
---|
![Public method Public method](../icons/pubMethod.gif) | Clone |
Creates a deep copy of this Factor.
|
![Public method Public method](../icons/pubMethod.gif) | DataToString |
Returns a formatted string representation of the data of this factor.
|
![Public method Public method](../icons/pubMethod.gif) | LevelsToString |
Returns a formatted string representation of the levels of this factor.
|
![Public method Public method](../icons/pubMethod.gif) | ToString |
Returns a formatted string representation of this factor.
(Overrides ObjectToString) |
Top
Operators
Fields | Name | Description |
---|
![Protected field Protected field](../icons/protField.gif) | name_ |
The name of this vector.
|
Top
Remarks
Factors are usually constructed from a data frame column using the GetFactor() method.
See Also