Documentation of 'jsat.clustering.SeedSelectionMethods' Java class
SeedSelectionMethods
jsat.clustering

Class SeedSelectionMethods



  • public class SeedSelectionMethods
    extends java.lang.Object
    This class provides methods for sampling a data set for a set of initial points to act as the seeds for a clustering algorithm.
    • Method Detail

      • selectIntialPoints

        public static java.util.List<Vec> selectIntialPoints(DataSet d,
                                                             int k,
                                                             DistanceMetric dm,
                                                             java.util.Random rand,
                                                             SeedSelectionMethods.SeedSelection selectionMethod)
        Selects seeds from a data set to use for a clustering algorithm. Copies of the vectors chosen will be returned.
        Parameters:
        d - the data set to perform select from
        k - the number of seeds to choose
        dm - the distance metric to used when selecting points
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
        Returns:
        a list of the copies of the chosen vectors.
      • selectIntialPoints

        public static java.util.List<Vec> selectIntialPoints(DataSet d,
                                                             int k,
                                                             DistanceMetric dm,
                                                             java.util.List<java.lang.Double> accelCache,
                                                             java.util.Random rand,
                                                             SeedSelectionMethods.SeedSelection selectionMethod)
        Parameters:
        d - the data set to perform select from
        k - the number of seeds to choose
        dm - the distance metric to used when selecting points
        accelCache - the cache of pre-generated acceleration information for the distance metric. May be null
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
        Returns:
        a list of the copies of the chosen vectors.
      • selectIntialPoints

        public static java.util.List<Vec> selectIntialPoints(DataSet d,
                                                             int k,
                                                             DistanceMetric dm,
                                                             java.util.Random rand,
                                                             SeedSelectionMethods.SeedSelection selectionMethod,
                                                             boolean parallel)
        Selects seeds from a data set to use for a clustering algorithm. Copies of the vectors chosen will be returned.
        Parameters:
        d - the data set to perform select from
        k - the number of seeds to choose
        dm - the distance metric to used when selecting points
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
        parallel - true if multiple threads should be used to perform clustering. false if it should be done in a single threaded manner.
        Returns:
        a list of the copies of the chosen vectors.
      • selectIntialPoints

        public static java.util.List<Vec> selectIntialPoints(DataSet d,
                                                             int k,
                                                             DistanceMetric dm,
                                                             java.util.List<java.lang.Double> accelCache,
                                                             java.util.Random rand,
                                                             SeedSelectionMethods.SeedSelection selectionMethod,
                                                             boolean parallel)
        Selects seeds from a data set to use for a clustering algorithm. Copies of the vectors chosen will be returned.
        Parameters:
        d - the data set to perform select from
        k - the number of seeds to choose
        dm - the distance metric to used when selecting points
        accelCache - the cache of pre-generated acceleration information for the distance metric. May be null
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
        parallel - true if multiple threads should be used to perform clustering. false if it should be done in a single threaded manner.
        Returns:
        a list of the copies of the chosen vectors.
      • selectIntialPoints

        public static void selectIntialPoints(DataSet d,
                                              int[] indices,
                                              DistanceMetric dm,
                                              java.util.Random rand,
                                              SeedSelectionMethods.SeedSelection selectionMethod)
        Selects seeds from a data set to use for a clustering algorithm. The indices of the chosen points will be placed in the indices array.
        Parameters:
        d - the data set to perform select from
        indices - a storage place to note the indices that were chosen as seed. The length of the array indicates how many seeds to select.
        dm - the distance metric to used when selecting points
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
      • selectIntialPoints

        public static void selectIntialPoints(DataSet d,
                                              int[] indices,
                                              DistanceMetric dm,
                                              java.util.List<java.lang.Double> accelCache,
                                              java.util.Random rand,
                                              SeedSelectionMethods.SeedSelection selectionMethod)
        Selects seeds from a data set to use for a clustering algorithm. The indices of the chosen points will be placed in the indices array.
        Parameters:
        d - the data set to perform select from
        indices - a storage place to note the indices that were chosen as seed. The length of the array indicates how many seeds to select.
        dm - the distance metric to used when selecting points
        accelCache - the cache of pre-generated acceleration information for the distance metric. May be null
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
      • selectIntialPoints

        public static void selectIntialPoints(DataSet d,
                                              int[] indices,
                                              DistanceMetric dm,
                                              java.util.Random rand,
                                              SeedSelectionMethods.SeedSelection selectionMethod,
                                              boolean parallel)
        Selects seeds from a data set to use for a clustering algorithm. The indices of the chosen points will be placed in the indices array.
        Parameters:
        d - the data set to perform select from
        indices - a storage place to note the indices that were chosen as seed. The length of the array indicates how many seeds to select.
        dm - the distance metric to used when selecting points
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
        parallel - true if multiple threads should be used to perform clustering. false if it should be done in a single threaded manner.
      • selectIntialPoints

        public static void selectIntialPoints(DataSet d,
                                              int[] indices,
                                              DistanceMetric dm,
                                              java.util.List<java.lang.Double> accelCache,
                                              java.util.Random rand,
                                              SeedSelectionMethods.SeedSelection selectionMethod,
                                              boolean parallel)
        Selects seeds from a data set to use for a clustering algorithm. The indices of the chosen points will be placed in the indices array.
        Parameters:
        d - the data set to perform select from
        indices - a storage place to note the indices that were chosen as seed. The length of the array indicates how many seeds to select.
        dm - the distance metric to used when selecting points
        accelCache - the cache of pre-generated acceleration information for the distance metric. May be null
        rand - a source of randomness
        selectionMethod - The method of seed selection to use.
        parallel - true if multiple threads should be used to perform clustering. false if it should be done in a single threaded manner.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.