Class DefaultObservation
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Double>
,Collection<Double>
,List<Double>
,RandomAccess
,Observation
A default observation is a vector of double values.
- Author:
- Matthias Thimm
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlibsvm.svm_node[]
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 java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface org.tweetyproject.machinelearning.Observation
equals, hashCode
-
Constructor Details
-
DefaultObservation
public DefaultObservation()
-
-
Method Details
-
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.
-