centroid.java
来自「一个k-means算法的改进。使用了模糊聚类的方法」· Java 代码 · 共 32 行
JAVA
32 行
package kc.test.fuzzy;
import java.awt.*;
/**
* @author Thomas Neidhart, thomas.neidhart@gmail.com, all rights by Know-Center
* Date: Aug 3, 2005
*
* Represents a cluster centroid
*/
public class Centroid extends Point
{
/**
* Create a new centroid object
* @param x the position on the x-axis
* @param c the color
*/
public Centroid(int x, Color c) {
super(x, c);
}
/**
* Create a cloned center object
* @return the cloned centroid
*/
public Centroid clone() {
Centroid c = null;
c = (Centroid) super.clone();
return c;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?