public class TypeVar
extends java.lang.Object
Class defined to store the attributes characteristics
Constructor and Description |
---|
TypeVar()
Creates a new instance of TypeVar
|
Modifier and Type | Method and Description |
---|---|
boolean |
getContinuous()
Gets if the variable is continuous or discrete
|
float |
getMax()
Gets the maximum value for the variable
|
float |
getMin()
Gets the minimum value for the variable
|
java.lang.String |
getName()
Gets the name of the variable
|
int |
getNLabels()
Gets the number of labels used by the continuous variable
|
char |
getType()
Gets the char with the type used in the variable
|
void |
initValues(java.util.Vector data)
Initialize private "valores" with the values of the vector
|
void |
setContinuous(boolean val)
Sets the type of the variable
|
void |
setMax(float val)
Sets the maximum value for the variable
|
void |
setMin(float val)
Sets the minimum value for the variable
|
void |
setName(java.lang.String val)
Sets the name of the variable
|
void |
setNLabels(int val)
Sets the number of labels used by the continuous variable
|
void |
setType(char val)
Sets the char with the type used in the variable
|
public void initValues(java.util.Vector data)
Initialize private "valores" with the values of the vector
data
- Vector with the type of variables usedpublic java.lang.String getName()
Gets the name of the variable
public void setName(java.lang.String val)
Sets the name of the variable
val
- Name of the variablepublic char getType()
Gets the char with the type used in the variable
public void setType(char val)
Sets the char with the type used in the variable
val
- The char with the type used in the variable: 'i' 'r' 'e'public boolean getContinuous()
Gets if the variable is continuous or discrete
public void setContinuous(boolean val)
Sets the type of the variable
val
- Value true if variable is continuos and false otherwisepublic int getNLabels()
Gets the number of labels used by the continuous variable
public void setNLabels(int val)
Sets the number of labels used by the continuous variable
val
- Number of labels in continuous variablepublic float getMin()
Gets the minimum value for the variable
public void setMin(float val)
Sets the minimum value for the variable
val
- Minimum value for the variablepublic float getMax()
Gets the maximum value for the variable
public void setMax(float val)
Sets the maximum value for the variable
val
- Minimum value for the variable