Class SubspaceModel

  • All Implemented Interfaces:
    Model, PrototypeModel<double[]>, elki.result.textwriter.TextWriteable

    public class SubspaceModel
    extends MeanModel
    implements elki.result.textwriter.TextWriteable
    Model for Subspace Clusters.
    Since:
    0.3
    Author:
    Erich Schubert, Elke Achtert
    • Field Detail

      • subspace

        private final Subspace subspace
        The subspace of the cluster.
    • Constructor Detail

      • SubspaceModel

        public SubspaceModel​(Subspace subspace,
                             double[] mean)
        Creates a new SubspaceModel for the specified subspace with the given cluster mean.
        Parameters:
        subspace - the subspace of the cluster
        mean - the cluster mean
    • Method Detail

      • getSubspace

        public Subspace getSubspace()
        Returns the subspace of this SubspaceModel.
        Returns:
        the subspace
      • getDimensions

        public long[] getDimensions()
        Returns the BitSet that represents the dimensions of the subspace of this SubspaceModel.
        Returns:
        the dimensions of the subspace
      • writeToText

        public void writeToText​(elki.result.textwriter.TextWriterStream out,
                                java.lang.String label)
        Description copied from interface: PrototypeModel
        Implementation of TextWriteable interface.
        Specified by:
        writeToText in interface Model
        Specified by:
        writeToText in interface PrototypeModel<double[]>
        Specified by:
        writeToText in interface elki.result.textwriter.TextWriteable
        Overrides:
        writeToText in class SimplePrototypeModel<double[]>
        Parameters:
        out - Output steam
        label - Optional label to prefix