Class SparseInstance

    • Constructor Detail

      • SparseInstance

        public SparseInstance​(double d,
                              double[] res)
        Instantiates a new sparse instance.
        Parameters:
        d - the d
        res - the res
      • SparseInstance

        public SparseInstance​(InstanceImpl inst)
        Instantiates a new sparse instance.
        Parameters:
        inst - the inst
      • SparseInstance

        public SparseInstance​(double numberAttributes)
        Instantiates a new sparse instance.
        Parameters:
        numberAttributes - the number attributes
      • SparseInstance

        public SparseInstance​(double weight,
                              double[] attributeValues,
                              int[] indexValues,
                              int numberAttributes)
        Instantiates a new sparse instance.
        Parameters:
        weight - the weight
        attributeValues - the attribute values
        indexValues - the index values
        numberAttributes - the number attributes