|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectswarm.BaseImpl
swarm.space.Discrete2dImpl
PatternSpace
フィールドの概要 | |
(パッケージプライベート) boolean[][] |
checked
|
(パッケージプライベート) java.util.LinkedList |
clusterData
|
(パッケージプライベート) java.util.LinkedList |
clusterSizeData
|
(パッケージプライベート) int |
height
|
(パッケージプライベート) java.util.LinkedList |
largestCluster
|
(パッケージプライベート) java.util.LinkedList |
remainingPoints
|
(パッケージプライベート) int |
width
|
クラス swarm.BaseImpl から継承したフィールド |
|
コンストラクタの概要 | |
PatternSpace(swarm.defobj.Zone aZone,
int W,
int H)
|
メソッドの概要 | |
int |
getClusterNum()
|
java.util.LinkedList |
getClusterSizeData()
|
double |
getPercolationProb()
浸透確率を計算する。 |
(パッケージプライベート) void |
initializeSpace()
コンストラクタの補助メソッド |
boolean |
remainingQ()
まだ点の置かれていない格子があるか |
void |
trace()
クラスタに分ける処理を行うメソッド ・はじめ、すべての点はunchecked ・点を順番に調べていく ・uncheckedの点につながっている点を再帰的に調べる(traceCluster) ・できあがったclusterDataの中で、最大のものが最大クラスタ これは再帰的な処理だが、もちろん反復でもできる。 |
(パッケージプライベート) void |
traceCluster(int i,
int j,
int ci)
traceの補助メソッド |
void |
update()
PatternSpaceに新しい点をランダムに追加する。 |
クラス swarm.space.Discrete2dImpl から継承したメソッド |
compare, copyDiscrete2d$toDiscrete2d, describe, describeID, drop, fastFillWithObject, fastFillWithValue, fillWithObject, fillWithValue, getCompleteProbeMap, getDisplayName, getName, getObjectAtX$Y, getProbeForMessage, getProbeForVariable, getProbeMap, getSizeX, getSizeY, getTypeName, getValueAtX$Y, getZone, perform, perform$with, perform$with$with, perform$with$with$with, putObject$atX$Y, putValue$atX$Y, respondsTo, setDiscrete2d$toFile, setDisplayName, xfprint, xfprintid, xprint, xprintid |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
int width
int height
java.util.LinkedList remainingPoints
java.util.LinkedList largestCluster
java.util.LinkedList clusterData
java.util.LinkedList clusterSizeData
boolean[][] checked
コンストラクタの詳細 |
public PatternSpace(swarm.defobj.Zone aZone, int W, int H)
メソッドの詳細 |
void initializeSpace()
public boolean remainingQ()
public void update()
public void trace()
void traceCluster(int i, int j, int ci)
public double getPercolationProb()
public java.util.LinkedList getClusterSizeData()
public int getClusterNum()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |