public class SimpleDataset extends java.util.LinkedList<SimpleInstance> implements IDataset<SimpleInstance>
| Constructor and Description |
|---|
SimpleDataset(InstanceSchema instanceSchema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(SimpleInstance instance) |
SimpleDataset |
createEmpty()
Creates an empty copy with the same attribute types as this IDataset.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<IAttributeType<?>> |
getAttributeTypes()
Returns the list of attribute types.
|
int |
getNumberOfAttributes()
Getter for the number of attributes (excluding target attribute).
|
IAttributeType<?> |
getTargetType() |
<T> IAttributeType<T> |
getTargetType(java.lang.Class<T> clazz)
Returns the attribute type of the target attribute.
|
int |
hashCode() |
java.lang.String |
printDoubleRepresentation() |
java.lang.String |
toString() |
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArraycontainsAll, isEmpty, removeAll, retainAllfinalize, getClass, notify, notifyAll, wait, wait, waitpublic SimpleDataset(InstanceSchema instanceSchema)
public <T> IAttributeType<T> getTargetType(java.lang.Class<T> clazz)
IDatasetgetTargetType in interface IDataset<SimpleInstance>public IAttributeType<?> getTargetType()
getTargetType in interface IDataset<SimpleInstance>public java.util.List<IAttributeType<?>> getAttributeTypes()
IDatasetgetAttributeTypes in interface IDataset<SimpleInstance>public int getNumberOfAttributes()
IDatasetgetNumberOfAttributes in interface IDataset<SimpleInstance>public boolean add(SimpleInstance instance)
add in interface java.util.Collection<SimpleInstance>add in interface java.util.Deque<SimpleInstance>add in interface java.util.List<SimpleInstance>add in interface java.util.Queue<SimpleInstance>add in class java.util.LinkedList<SimpleInstance>public java.lang.String toString()
toString in class java.util.AbstractCollection<SimpleInstance>public java.lang.String printDoubleRepresentation()
throws ContainsNonNumericAttributesException
public SimpleDataset createEmpty()
IDatasetcreateEmpty in interface IDataset<SimpleInstance>public int hashCode()
hashCode in interface java.util.Collection<SimpleInstance>hashCode in interface java.util.List<SimpleInstance>hashCode in class java.util.AbstractList<SimpleInstance>public boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<SimpleInstance>equals in interface java.util.List<SimpleInstance>equals in class java.util.AbstractList<SimpleInstance>