Class BICO

    • Field Detail

      • numClustersOption

        public IntOption numClustersOption
      • numDimensionsOption

        public IntOption numDimensionsOption
      • maxNumClusterFeaturesOption

        public IntOption maxNumClusterFeaturesOption
      • numProjectionsOption

        public IntOption numProjectionsOption
      • numClusters

        protected int numClusters
      • numDimensions

        protected int numDimensions
      • maxNumClusterFeatures

        protected int maxNumClusterFeatures
      • numProjections

        protected int numProjections
    • Constructor Detail

      • BICO

        public BICO()
    • Method Detail

      • isRandomizable

        public boolean isRandomizable()
      • printMicroClusteringResult

        public void printMicroClusteringResult​(Writer stream)
                                        throws IOException
        Writes all micro cluster to a given stream.
        Parameters:
        stream - the stream
        Throws:
        IOException - If an I/O error occurs
      • getMicroClusteringSize

        public int getMicroClusteringSize()
        Returns the current size of the micro clustering.
        Returns:
        The size of the micro clustering
      • getVotesForInstance

        public double[] getVotesForInstance​(Instance inst)
      • getClusteringResult

        public Clustering getClusteringResult()
      • bicoUpdate

        protected void bicoUpdate​(double[] x)
        Inserts a new point into the ClusteringFeature tree.
        Parameters:
        x - the point
      • rebuild

        protected void rebuild()
        If the number of ClusteringTreeNodes exceeds the maximum bound, the global threshold T will be doubled and the tree will be rebuild with the new threshold.
      • bicoCFUpdate

        protected void bicoCFUpdate​(ClusteringTreeNode x)
        Inserts a ClusteringTreeNode into the ClusteringFeature tree.
        Parameters:
        x - the ClusteringTreeNode
      • calcRSquared

        protected double calcRSquared​(int level)
        Calculates the squared threshold at a specific level in the ClusteringFeature tree.
        Parameters:
        level - level in the tree
        Returns:
        the squared threshold
      • calcR

        protected double calcR​(int level)
        Calculates the threshold at a specific level in the ClusteringFeature tree.
        Parameters:
        level - level in the tree
        Returns:
        the threshold