Catalano.MachineLearning.Regression
Class RadiusNearestNeighbors
- java.lang.Object
-
- Catalano.MachineLearning.Regression.RadiusNearestNeighbors
-
- All Implemented Interfaces:
- IRegression, java.io.Serializable, java.lang.Cloneable
public class RadiusNearestNeighbors extends java.lang.Object implements IRegression, java.io.Serializable
Radius Nearest Neighbors for regression.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RadiusNearestNeighbors()Initializes a new instance of the RadiusNearestNeighbors class.RadiusNearestNeighbors(double radius)Initializes a new instance of the RadiusNearestNeighbors class.RadiusNearestNeighbors(double radius, IDivergence divergence)Initializes a new instance of the RadiusNearestNeighbors class.RadiusNearestNeighbors(double radius, IMercerKernel kernel)Initializes a new instance of the RadiusNearestNeighbors class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IRegressionclone()Clone of the object.doublegetRadius()Get radius.voidLearn(DatasetRegression dataset)Learn.voidLearn(double[][] input, double[] output)Learn.doublePredict(double[] feature)Predict.voidsetRadius(double radius)Set radius.
-
-
-
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- Divergence.
-
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.
-
Learn
public void Learn(DatasetRegression dataset)
Description copied from interface:IRegressionLearn.- Specified by:
Learnin interfaceIRegression- Parameters:
dataset- Dataset regression.
-
Learn
public void Learn(double[][] input, double[] output)Description copied from interface:IRegressionLearn.- Specified by:
Learnin interfaceIRegression- Parameters:
input- Input.output- Output.
-
Predict
public double Predict(double[] feature)
Description copied from interface:IRegressionPredict.- Specified by:
Predictin interfaceIRegression- Parameters:
feature- Feature.- Returns:
- Value.
-
clone
public IRegression clone()
Description copied from interface:IRegressionClone of the object.- Specified by:
clonein interfaceIRegression- Overrides:
clonein classjava.lang.Object- Returns:
- A new copy of the object.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG