org.omegahat.Environment.DataStructures
Interface Factor

All Superinterfaces:
DataVariable, Variable
All Known Subinterfaces:
OrderedFactor

public interface Factor
extends DataVariable

A categorical variable for which each observation can have a value from a particular set of values.


Method Summary
 long[] indicesForLevel(java.lang.Object level)
          Get the indices of the observations associated with the given level.
 FactorLevelSet levels()
          Return an element containing the different levels used by this variable.
 java.lang.Object[] values()
           
 
Methods inherited from interface org.omegahat.Environment.DataStructures.Variable
getDataFrame, getName, numObservations, setDataFrame, setName, value
 

Method Detail

levels

public FactorLevelSet levels()
Return an element containing the different levels used by this variable.

indicesForLevel

public long[] indicesForLevel(java.lang.Object level)
Get the indices of the observations associated with the given level.

values

public java.lang.Object[] values()
Specified by:
values in interface DataVariable