public class SetData
extends java.lang.Object
Data structure for the examples
Constructor and Description |
---|
SetData()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDato(Instance m)
Add a data
|
SetData |
copiaConjDatos()
Copy the dataset in another
|
void |
deleteDato(int i)
Delete a data
|
Instance |
getDato(int i)
Return an instance
|
int |
getExamplesClass(int value)
Return the examples for a class
|
void |
print()
Show an instance
|
void |
setDato(int i,
Instance m)
Sets an instance
|
int |
size()
Return the number of instances
|
public void deleteDato(int i)
Delete a data
i
- Position to deletepublic void addDato(Instance m)
Add a data
m
- Instance to addpublic Instance getDato(int i)
Return an instance
i
- Position of the instancepublic void setDato(int i, Instance m)
Sets an instance
i
- Position to insert the instancem
- Instance to insertpublic int size()
Return the number of instances
public void print()
Show an instance
public SetData copiaConjDatos()
Copy the dataset in another
public int getExamplesClass(int value)
Return the examples for a class
value
- Value of the class