Package net.sf.tweety.machinelearning
Class DefaultObservation
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<java.lang.Double>
-
- net.sf.tweety.machinelearning.DefaultObservation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<java.lang.Double>
,java.util.Collection<java.lang.Double>
,java.util.List<java.lang.Double>
,java.util.RandomAccess
,Observation
public class DefaultObservation extends java.util.Vector<java.lang.Double> implements Observation
A default observation is a vector of double values.- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultObservation()
-
Method Summary
Modifier and Type Method Description libsvm.svm_node[]
toSvmNode()
Returns the svm_node (the data model of libsvm) representation of this observation.-
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
-
Methods inherited from interface net.sf.tweety.machinelearning.Observation
equals, hashCode
-
-
-
-
Method Detail
-
toSvmNode
public libsvm.svm_node[] toSvmNode()
Description copied from interface:Observation
Returns the svm_node (the data model of libsvm) representation of this observation.- Specified by:
toSvmNode
in interfaceObservation
- Returns:
- an array of svm_node.
-
-