|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.Variable
sources.OrdinalVariable
Represents a Ordinal Variable (can be converted into a categorial or continuous Variable!!)
Field Summary |
Fields inherited from class sources.Variable |
id, name |
Constructor Summary | |
OrdinalVariable(int[] values,
int length,
java.lang.String nam,
int identnr)
Creates new OrdinalVariable |
Method Summary | |
CategorialVariable |
convertToCat()
converts this variable into a CategorialVariable |
ContinuousVariable |
convertToCont()
converts this variable into a ContinuousVariable |
static OrdinalVariable |
createFromCatVar(CategorialVariable catVar)
creates an OrdinalVariable from a CategorialVariable |
int |
getCatsAnz()
|
int |
getCount()
returns the number of cases |
int |
getMaximum()
returns the maximum value of this variable |
double |
getMedian()
returns the median of this variable |
int |
getMinimum()
returns the minimum value of this variable |
java.lang.String |
getTextualRepresentation(int i)
Returns the textual Representation of this case |
int |
getValueAt(int i)
returns the value of case i |
int[] |
getValues()
returns all values of this variable |
Methods inherited from class sources.Variable |
equals, getID, getName, getTextualRepresentations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OrdinalVariable(int[] values, int length, java.lang.String nam, int identnr)
values
- values of this variablelength
- # cases of this variablenam
- Name of this variableMethod Detail |
public int getCount()
getCount
in class Variable
public int getCatsAnz()
public java.lang.String getTextualRepresentation(int i)
getTextualRepresentation
in class Variable
i
- case to get the textual representation
public int getValueAt(int i)
i
- index of case
public int[] getValues()
public static OrdinalVariable createFromCatVar(CategorialVariable catVar)
catVar
- the CategorialVariable
public int getMinimum()
public int getMaximum()
public double getMedian()
public ContinuousVariable convertToCont()
public CategorialVariable convertToCat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |