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

Class LSDBC

    • Constructor Detail

      • LSDBC

        public LSDBC(DistanceMetric dm,
                     double alpha,
                     int neighbors)
        Creates a new LSDBC clustering object using the given distance metric
        Parameters:
        dm - the distance metric to use
        alpha - the scale factor to use when forming clusters
        neighbors - the number of neighbors to consider when determining clusters
      • LSDBC

        public LSDBC(DistanceMetric dm,
                     double alpha)
        Creates a new LSDBC clustering object using the given distance metric
        Parameters:
        dm - the distance metric to use
        alpha - the scale factor to use when forming clusters
      • LSDBC

        public LSDBC(DistanceMetric dm)
        Creates a new LSDBC clustering object using the given distance metric
        Parameters:
        dm - the distance metric to use
      • LSDBC

        public LSDBC()
        Creates a new LSDBC clustering object using the EuclideanDistance and default parameter values.
      • LSDBC

        public LSDBC(LSDBC toCopy)
        Copy constructor
        Parameters:
        toCopy - the object to copy
    • Method Detail

      • setVectorCollectionFactory

        public void setVectorCollectionFactory(VectorCollection<VecPaired<Vec,java.lang.Integer>> vc)
        Sets the vector collection factory used for acceleration of neighbor searches.
        Parameters:
        vc - the vector collection to use
      • setDistanceMetric

        public void setDistanceMetric(DistanceMetric dm)
        Sets the distance metric used when performing clustering.
        Parameters:
        dm - the distance metric to use.
      • setNeighbors

        public void setNeighbors(int neighbors)
        Sets the number of neighbors that will be considered when clustering data points
        Parameters:
        neighbors - the number of neighbors the algorithm will use
      • getNeighbors

        public int getNeighbors()
        Returns the number of neighbors that will be considered when clustering data points
        Returns:
        the number of neighbors the algorithm will use
      • setAlpha

        public void setAlpha(double alpha)
        Sets the scale value that will control how many points are added to a cluster. Smaller values will create more, smaller clusters - and more points will be labeled as noise. Larger values causes larger and fewer clusters.
        Parameters:
        alpha - the scale value to use
      • getAlpha

        public double getAlpha()
        Returns the scale value that will control how many points are added to a cluster. Smaller values will create more, smaller clusters - and more points will be labeled as noise. Larger values causes larger and fewer clusters.
        Returns:
        the scale value to use
      • 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.
        Specified by:
        cluster in interface Clusterer
        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[]

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.