Documentation of 'Catalano.MachineLearning.Classification.RadiusNearestNeighbors' Java class
RadiusNearestNeighbors
Catalano.MachineLearning.Classification

Class RadiusNearestNeighbors

  • All Implemented Interfaces:
    IClassifier, java.io.Serializable, java.lang.Cloneable


    public class RadiusNearestNeighbors
    extends java.lang.Object
    implements IClassifier, java.io.Serializable
    Radius Neighbour classifier.
    See Also:
    Serialized Form
    • Constructor Detail

      • RadiusNearestNeighbors

        public RadiusNearestNeighbors()
        Initializes a new instance of the RadiusNearestNeighbors class.
      • RadiusNearestNeighbors

        public RadiusNearestNeighbors(double radius)
        Initializes a new instance of the RadiusNearestNeighbors class.
        Parameters:
        radius - Radius.
      • RadiusNearestNeighbors

        public RadiusNearestNeighbors(double radius,
                                      IDivergence divergence)
        Initializes a new instance of the RadiusNearestNeighbors class.
        Parameters:
        radius - Radius.
        divergence - Distance.
      • RadiusNearestNeighbors

        public RadiusNearestNeighbors(double radius,
                                      IMercerKernel kernel)
        Initializes a new instance of the RadiusNearestNeighbors class.
        Parameters:
        radius - Radius.
        kernel - Kernel.
    • Method Detail

      • getRadius

        public double getRadius()
        Get Radius.
        Returns:
        Radius.
      • setRadius

        public void setRadius(double radius)
        Set Radius.
        Parameters:
        radius - Radius.
      • getKernel

        public IMercerKernel getKernel()
        Get the kernel metric.
        Returns:
        Kernel.
      • setMercerKernel

        public void setMercerKernel(IMercerKernel kernel)
        Set the kernel metric.
        Parameters:
        kernel - Kernel.
      • getDistance

        public IDivergence getDistance()
        Get the divergence function.
        Returns:
        Divergence.
      • setDistance

        public void setDistance(IDivergence divergence)
        Set the divergence function.
        Parameters:
        divergence - Divergence.
      • Learn

        public void Learn(double[][] input,
                          int[] output)
        Description copied from interface: IClassifier
        Learn.
        Specified by:
        Learn in interface IClassifier
        Parameters:
        input - Matrix of features.
        output - Labels.
      • Predict

        public int Predict(double[] feature)
        Compute.
        Specified by:
        Predict in interface IClassifier
        Parameters:
        feature - Feature to compute.
        Returns:
        Object.
      • clone

        public IClassifier clone()
        Description copied from interface: IClassifier
        Clone of the object.
        Specified by:
        clone in interface IClassifier
        Overrides:
        clone in class java.lang.Object
        Returns:
        A new copy of the object.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.