Documentation of 'jsat.clustering.hierarchical.PriorityHAC' Java class
PriorityHAC
jsat.clustering.hierarchical

Class PriorityHAC

    • Method Detail

      • cluster

        public int[] cluster(DataSet dataSet,
                             int[] designations)
        Description copied from interface: Clusterer
        Performs clustering on the given data set. Parameters may be estimated by the method, or other heuristics performed.
        Parameters:
        dataSet - the data set to perform clustering on
        designations - the array which will contain the designated values. The array will be altered and returned by the function. If null is given, a new array will be created and returned.
        Returns:
        an array indicating for each value indicating the cluster designation. This is the same array as designations, or a new one if the input array was null
      • cluster

        public int[] cluster(DataSet dataSet,
                             boolean parallel,
                             int[] designations)
        Description copied from interface: Clusterer
        Performs clustering on the given data set. Parameters may be estimated by the method, or other heuristics performed.
        Parameters:
        dataSet - the data set to perform clustering on
        parallel - true if multiple threads should be used to perform clustering. false if it should be done in a single threaded manner.
        designations - the array which will contain the designated values. The array will be altered and returned by the function. If null is given, a new array will be created and returned.
        Returns:
        the int[]
      • cluster

        public int[] cluster(DataSet dataSet,
                             int clusters,
                             boolean parallel,
                             int[] designations)
      • cluster

        public int[] cluster(DataSet dataSet,
                             int clusters,
                             int[] designations)
      • cluster

        public int[] cluster(DataSet dataSet,
                             int lowK,
                             int highK,
                             boolean parallel,
                             int[] designations)
      • cluster

        public int[] cluster(DataSet dataSet,
                             int lowK,
                             int highK,
                             int[] designations)
      • hasStoredClustering

        public boolean hasStoredClustering()
        The PriorityHAC stores its merging order, so that multiple clusterings can of different sizes can be obtained without having to recluster the data set. This is possible in part because HAC is deterministic.
        This returns true if there is currently a data set and its merge order stored.
        Returns:
        true if you can call for more clusterings, false if no data set has been clustered.
      • getClusterDesignations

        public int[] getClusterDesignations(int[] designations,
                                            int clusters)
        Returns the assignment array for that would have been computed for the previous data set with the desired number of clusters.
        Parameters:
        designations - the array to store the assignments in
        clusters - the number of clusters desired
        Returns:
        the original array passed in, or null if no data set has been clustered.
        See Also:
        hasStoredClustering()
      • getClusterDesignations

        public java.util.List<java.util.List<DataPoint>> getClusterDesignations(int clusters)
        Returns the assignment array for that would have been computed for the previous data set with the desired number of clusters.
        Parameters:
        clusters - the number of clusters desired
        Returns:
        the list of data points in each cluster, or null if no data set has been clustered.
        See Also:
        hasStoredClustering()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.