Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      For serialization
      • Fields inherited from class java.util.Vector

        capacityIncrement, elementCount, elementData
      • Fields inherited from class java.util.AbstractList

        modCount
    • 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, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
      • Methods inherited from class java.lang.Object

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

        parallelStream, stream, toArray
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization
        See Also:
        Constant Field Values
    • 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
        Returns:
        an array of svm_node.