Class IndexedSparseVector

    • Constructor Detail

      • IndexedSparseVector

        public IndexedSparseVector​(int[] indices,
                                   double[] values,
                                   int capacity,
                                   int size,
                                   boolean copy,
                                   boolean checkIndicesSorted,
                                   boolean removeDuplicates)
      • IndexedSparseVector

        public IndexedSparseVector()
        Create an empty vector
      • IndexedSparseVector

        public IndexedSparseVector​(int[] featureIndices,
                                   double[] values)
        Create non-binary vector, possibly dense if "featureIndices" or possibly sparse, if not
      • IndexedSparseVector

        public IndexedSparseVector​(int[] featureIndices)
        Create binary vector