Package smile.math

Class SparseArray.Entry

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    SparseArray

    public static class SparseArray.Entry
    extends java.lang.Object
    implements java.io.Serializable
    The entry in a sparse array of double values.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int i
      The index of entry.
      double x
      The value of entry.
    • Constructor Summary

      Constructors 
      Constructor Description
      Entry​(int i, double x)
      Constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • i

        public int i
        The index of entry.
      • x

        public double x
        The value of entry.
    • Constructor Detail

      • Entry

        public Entry​(int i,
                     double x)
        Constructor.
        Parameters:
        i - the index of entry.
        x - the value of entry.