⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplesymetricalmatrixdemo.java

📁 dm s preparing process. In this case we use O distance.
💻 JAVA
字号:
/* created at 2005-12-23 */
package com.clustering.ds.matrix;

/**
 * @author Avon
 * @version 0.9
 * @since 0.9
 */
public class SimpleSymetricalMatrixDemo {
	private static int bound = 5;
	public static void main(String[] args) {
		SquaredMatrix matrix = new SimpleSymetricalMatrix(bound);
		matrix.setElement(1,1, new Integer(10));
		int count = 1;
		for (int i = 0; i < bound;i++) {
			for (int j = 0; j < bound; j++) {
				matrix.setElement(i,j, new Integer(count++));
			}
		}
		for (int i = 0; i < bound;i++) {
			for (int j = 0; j < bound; j++) {
				System.out.print("["+i+" ,"+j+"]"+matrix.getElement(i,j)+"   ");
			}
			System.out.println();
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -