Package org.hipparchus.samples
Class ClusterAlgorithmComparison
- java.lang.Object
-
- org.hipparchus.samples.ClusterAlgorithmComparison
-
public class ClusterAlgorithmComparison extends Object
Plots clustering results for various algorithms and datasets. Based on scikit learn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterAlgorithmComparison.ClusterPlot
static class
ClusterAlgorithmComparison.Display
-
Constructor Summary
Constructors Constructor Description ClusterAlgorithmComparison()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Vector2D
generateNoiseVector(RandomGenerator randomGenerator, double noise)
static void
main(String[] args)
static List<Vector2D>
makeBlobs(int samples, int centers, double clusterStd, double min, double max, boolean shuffle, RandomGenerator random)
static List<Vector2D>
makeCircles(int samples, boolean shuffle, double noise, double factor, RandomGenerator random)
static List<Vector2D>
makeMoons(int samples, boolean shuffle, double noise, RandomGenerator random)
static List<Vector2D>
makeRandom(int samples)
static List<DoublePoint>
normalize(List<Vector2D> input, double minX, double maxX, double minY, double maxY)
-
-
-
Method Detail
-
makeCircles
public static List<Vector2D> makeCircles(int samples, boolean shuffle, double noise, double factor, RandomGenerator random)
-
makeMoons
public static List<Vector2D> makeMoons(int samples, boolean shuffle, double noise, RandomGenerator random)
-
makeBlobs
public static List<Vector2D> makeBlobs(int samples, int centers, double clusterStd, double min, double max, boolean shuffle, RandomGenerator random)
-
generateNoiseVector
public static Vector2D generateNoiseVector(RandomGenerator randomGenerator, double noise)
-
normalize
public static List<DoublePoint> normalize(List<Vector2D> input, double minX, double maxX, double minY, double maxY)
-
main
public static void main(String[] args)
-
-