jsat.clustering
Class SeedSelectionMethods
- java.lang.Object
-
- jsat.clustering.SeedSelectionMethods
-
public class SeedSelectionMethods extends java.lang.ObjectThis class provides methods for sampling a data set for a set of initial points to act as the seeds for a clustering algorithm.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classSeedSelectionMethods.SeedSelection
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidselectIntialPoints(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.static voidselectIntialPoints(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.static voidselectIntialPoints(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.static voidselectIntialPoints(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.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)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.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.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.
-
-
-
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 fromk- the number of seeds to choosedm- the distance metric to used when selecting pointsrand- a source of randomnessselectionMethod- 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 fromk- the number of seeds to choosedm- the distance metric to used when selecting pointsaccelCache- the cache of pre-generated acceleration information for the distance metric. May be nullrand- a source of randomnessselectionMethod- 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 fromk- the number of seeds to choosedm- the distance metric to used when selecting pointsrand- a source of randomnessselectionMethod- The method of seed selection to use.parallel-trueif multiple threads should be used to perform clustering.falseif 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 fromk- the number of seeds to choosedm- the distance metric to used when selecting pointsaccelCache- the cache of pre-generated acceleration information for the distance metric. May be nullrand- a source of randomnessselectionMethod- The method of seed selection to use.parallel-trueif multiple threads should be used to perform clustering.falseif 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 fromindices- 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 pointsrand- a source of randomnessselectionMethod- 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 fromindices- 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 pointsaccelCache- the cache of pre-generated acceleration information for the distance metric. May be nullrand- a source of randomnessselectionMethod- 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 fromindices- 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 pointsrand- a source of randomnessselectionMethod- The method of seed selection to use.parallel-trueif multiple threads should be used to perform clustering.falseif 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 fromindices- 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 pointsaccelCache- the cache of pre-generated acceleration information for the distance metric. May be nullrand- a source of randomnessselectionMethod- The method of seed selection to use.parallel-trueif multiple threads should be used to perform clustering.falseif it should be done in a single threaded manner.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG