|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.Variable
sources.ContinuousVariable
Class that represents a continuous Variable
Field Summary |
Fields inherited from class sources.Variable |
id, name |
Constructor Summary | |
ContinuousVariable(double[] values,
int length,
int gen,
java.lang.String nam,
int identnr)
Creates new ContinuousVariable |
Method Summary | |
static ContinuousVariable |
createFromCatVar(CategorialVariable catVar)
create ContinuousVariable from a CategorialVariable |
int |
getCount()
returns the number of cases of this variable |
int |
getGen()
return the number of characters to show |
double |
getIRQ()
returns the IRQ of this variable |
double |
getMaximum()
returns the maximum value of this varieble |
double |
getMean()
returns the mean of this variable |
double |
getMedian()
returns the median of this varieble |
double |
getMinimum()
returns the minimum value of this variable |
double |
getSigma()
returns the std error of this variable |
double[] |
getSortv()
returns the sorted values of the variable |
java.lang.String |
getTextualRepresentation(int i)
Returns the textual Representation of this case |
double |
getValueAt(int i)
returns the value of case i |
double[] |
getValues()
returns all values of this variable |
void |
setGen(int gen)
Set the number of characters to show |
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 ContinuousVariable(double[] values, int length, int gen, java.lang.String nam, int identnr)
identnr
- the identity number of this variablevalues
- values in doublelength
- length of the variablegen
- Show gen characters, -1 show all charactersnam
- Name of the variableMethod Detail |
public int getCount()
getCount
in class Variable
public java.lang.String getTextualRepresentation(int i)
getTextualRepresentation
in class Variable
i
- case to get the textual representation
public double getValueAt(int i)
i
- index of case
public double[] getValues()
public int getGen()
public void setGen(int gen)
gen
- number of characters to showpublic static ContinuousVariable createFromCatVar(CategorialVariable catVar)
catVar
- the CategorialVariable
CategorialVariable
public double getMinimum()
public double getMaximum()
public double getMedian()
public double getMean()
public double getSigma()
public double getIRQ()
public double[] getSortv()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |