 | 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 |
---|
  | Factor(Object) |
Constructs a Factor instance from the given array of objects.
|
 | 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.
|
  | Factor(Object, Object) |
Constructs a Factor instance from the given array of objects, using the given
factor levels.
|
  | Factor(Object, String) |
Constructs a Factor instance from the given array of objects.
|
 | 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.
|
  | Factor(Object, Object, String) |
Constructs a Factor instance from the given array of objects, using the given
factor levels.
|
Top
Properties | Name | Description |
---|
 | Data |
Gets the categorical data for this factor.
|
 | Item |
Gets the element at the given index.
|
 | Length |
Gets the length of the data vector for this factor.
|
 | Levels |
Gets the levels of this factor.
|
 | Name |
Gets and set the name of this factor.
|
 | NumberOfLevels |
Gets the number of levels in this factor.
|
Top
Methods | Name | Description |
---|
 | Clone |
Creates a deep copy of this Factor.
|
 | DataToString |
Returns a formatted string representation of the data of this factor.
|
 | LevelsToString |
Returns a formatted string representation of the levels of this factor.
|
 | ToString |
Returns a formatted string representation of this factor.
(Overrides ObjectToString) |
Top
Operators
Fields | Name | Description |
---|
 | name_ |
The name of this vector.
|
Top
Remarks
Factors are usually constructed from a data frame column using the GetFactor() method.
See Also