public class SimpleDataset<L> extends java.util.LinkedList<SimpleInstance<L>> implements IOrderedLabeledAttributeArrayDataset<SimpleInstance<L>,L>
| Constructor and Description |
|---|
SimpleDataset(InstanceSchema<L> instanceSchema) |
| Modifier and Type | Method and Description |
|---|---|
SimpleDataset<L> |
createEmpty()
Creates an empty copy of the same structure (and same type).
|
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<L> |
getTargetType()
Returns the attribute type of the target attribute.
|
int |
hashCode() |
java.lang.String |
printDoubleRepresentation() |
java.lang.String |
toString() |
add, 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<L> instanceSchema)
public IAttributeType<L> getTargetType()
AILabeledAttributeArrayDatasetgetTargetType in interface AILabeledAttributeArrayDataset<SimpleInstance<L>,L>public java.util.List<IAttributeType<?>> getAttributeTypes()
AILabeledAttributeArrayDatasetgetAttributeTypes in interface AILabeledAttributeArrayDataset<SimpleInstance<L>,L>public int getNumberOfAttributes()
AILabeledAttributeArrayDatasetgetNumberOfAttributes in interface AILabeledAttributeArrayDataset<SimpleInstance<L>,L>public java.lang.String toString()
toString in class java.util.AbstractCollection<SimpleInstance<L>>public java.lang.String printDoubleRepresentation()
throws ContainsNonNumericAttributesException
public SimpleDataset<L> createEmpty()
IDatasetcreateEmpty in interface IDataset<SimpleInstance<L>>public int hashCode()
hashCode in interface java.util.Collection<SimpleInstance<L>>hashCode in interface java.util.List<SimpleInstance<L>>hashCode in class java.util.AbstractList<SimpleInstance<L>>public boolean equals(java.lang.Object obj)
equals in interface java.util.Collection<SimpleInstance<L>>equals in interface java.util.List<SimpleInstance<L>>equals in class java.util.AbstractList<SimpleInstance<L>>