R[i, j] = True
// symmetrize
if symmetric:
R = R * R.T
return R
def structure_feature(R, pad=True):
"""Compute the structure feature from a recurrence matrix.
After Change
// symmetrize
R = R * R.T
elif mode == "gaussian":
R = np.exp( -0.5 * D / k)
return R
def structure_feature(R, pad=True):