public class Dataset
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
nInputs
Input number
|
protected int |
nOutputs
Output number
|
Constructor and Description |
---|
Dataset(java.lang.String fileName)
Read a DataSet
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeIndex(int index)
Return attribute name at index position
|
java.util.Vector |
getAttributes()
Returns a vector with variable names
|
java.lang.String |
getAttributeTypeIndex(int index)
Return attribute type at index position
|
java.lang.String |
getDataIndex(int i,
int j)
Return data at position (i,j)
|
java.util.Vector |
getDataVector()
Returns a vector of vectors in which each vector is an example/pattern
Note: each value is stored as a String (must be converted)
|
java.util.Vector |
getInputs()
Return a vector that contains input variables
|
int |
getNData()
Return example/patterns number
|
int |
getNInputs()
Return input variable number
|
int |
getNOutputs()
Return output variable number
|
int |
getNVariables()
Return variable number
|
java.util.Vector |
getOutputs()
Return a vector that contains output variables
|
java.util.Vector |
getPatternIndex(int index)
Return example/pattern at index position
|
java.util.Vector |
getRange(int index)
Return range of index variable
|
java.util.Vector |
getRanges()
Return a vector of vectors in which each vector contains the ranges
for the variable
|
java.lang.String |
getRangesEnum(int var,
int index)
Returns range value at index of var variable
|
java.lang.Integer |
getRangesInt(int var,
int index)
Return range value at index of var variable
|
java.lang.Double |
getRangesReal(int var,
int index)
Return range value at index of var variable
|
java.util.Vector |
getRangesVar(java.lang.String variableName)
Return the range of a variable
|
java.lang.String |
getRelacion()
Return the relation name
|
java.util.Vector |
getTypes()
Return a vector with variable types (integer, real, nominal)
|
void |
setNentradas(int nInputs)
Set input variable number
|
void |
setNOutputs(int nOutputs)
Set output variable number
|
void |
setNVariables(int nVariables)
Sets input variable number
|
protected int nInputs
protected int nOutputs
public Dataset(java.lang.String fileName)
Read a DataSet
fileName
- File Name with a datasetpublic java.lang.String getRelacion()
Return the relation name
public java.util.Vector getDataVector()
Returns a vector of vectors in which each vector is an example/pattern Note: each value is stored as a String (must be converted)
public java.util.Vector getAttributes()
Returns a vector with variable names
public java.util.Vector getTypes()
Return a vector with variable types (integer, real, nominal)
public java.util.Vector getRanges()
Return a vector of vectors in which each vector contains the ranges for the variable
public java.util.Vector getInputs()
Return a vector that contains input variables
public java.util.Vector getOutputs()
Return a vector that contains output variables
public int getNVariables()
Return variable number
public void setNVariables(int nVariables)
Sets input variable number
nVariables
- Input variable numberpublic int getNInputs()
Return input variable number
public void setNentradas(int nInputs)
Set input variable number
nInputs
- New Input Variable Numberpublic int getNOutputs()
Return output variable number
public void setNOutputs(int nOutputs)
Set output variable number
nOutputs
- New output variable numberpublic int getNData()
Return example/patterns number
public java.lang.String getAttributeIndex(int index)
Return attribute name at index position
index
- Index positionpublic java.lang.String getAttributeTypeIndex(int index)
Return attribute type at index position
index
- Index positionpublic java.util.Vector getPatternIndex(int index)
Return example/pattern at index position
index
- Index positionpublic java.lang.String getDataIndex(int i, int j)
Return data at position (i,j)
i
- position ij
- position jpublic java.util.Vector getRange(int index)
Return range of index variable
index
- Index positionpublic java.lang.Integer getRangesInt(int var, int index)
Return range value at index of var variable
var
- Number of int variableindex
- Index positionpublic java.lang.Double getRangesReal(int var, int index)
Return range value at index of var variable
var
- Number of double variableindex
- Index positionpublic java.lang.String getRangesEnum(int var, int index)
Returns range value at index of var variable
var
- Number of enum variableindex
- Index positionpublic java.util.Vector getRangesVar(java.lang.String variableName)
Return the range of a variable
variableName
- Name of the variable