Usage
calcMultiPotential_cpp(W_SR, W_LR, sample, threshold, coords, distance_ref, nbGroup_min, multiV, neutre)
Arguments
W_SR
The local neighborhood matrix. dgCMatrix. Should be normalized by row (i.e. rowSums(W_SR)=1
).
W_LR
The regional neighborhood matrix. dgCMatrix. Should contain the distances between the observations (0
indicating infinite distance).
sample
The group probability membership. numeric vector.
threshold
The minimum value to consider non-negligible group membership. numeric.
coords
The voxel coordinates. matrix.
distance_ref
The intervals of distance defining the several neighborhood orders in W_LR
. numeric vector.
nbGroup_min
The minimum group size of the spatial groups required for performing regional regularization. integer.
multiV
Should the regional potential range be specific to each spatial group ? logical.
neutre
the value to which the regional potential is set when the group is too small to compute it. numeric.