joinCount

(method of grain2d)

returns the a joins-count between neighbour coloring

Syntax

[J,T,q,p] = joinCount(grains,coloring)

Input

grains

@GrainSet

coloring

double list of color corresponding to the grains

Output

J

join count matrice

T

normalized chi^2 test of independence

q

empirical entities actually counted

p

esitmated

mple n count of phase transitions

,T,q,p] = joincount(grains,grains.phase)