Class DefaultObservation

  • All Implemented Interfaces:, 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.
    Matthias Thimm
    See Also:
    Serialized Form
    • 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 class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
    • Constructor Detail

      • DefaultObservation

        public DefaultObservation()
    • 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 interface Observation
        an array of svm_node.