|
Algorithm 2 Cluster State Transition Matrix Generation Algorithm
|
|
Input: /* set of cluster centroids */ |
| /* number of clusters */ |
| /* distance limit */ |
|
Output: /* set of cluster transition matrix */ |
|
for
to
do
|
| ; |
| ; |
| ; |
| for
to
do
|
| ; |
| if
or
then
|
| ; |
| ; |
| else
|
| ; |
| if
or
then
|
| ; |
| ; |
| end
|
| end
|
| end
|
| if
then
|
| ; |
| ; |
| end
|
|
end
|
|
for
to
do
|
| ; |
| for
to
do
|
| if
then
|
| ; |
| else
|
| ; |
| end
|
| end
|
|
end
|