def segment_radii(neurites, neurite_type=NeuriteType.all):
def _seg_radii(sec):<EOL><INDENT>'''<STR_LIT>'''<EOL>pts = sec.points[:, COLS.R]<EOL>return np.divide(np.add(pts[:-<NUM_LIT:1>], pts[<NUM_LIT:1>:]), <NUM_LIT>)<EOL><DEDENT>return map_segments(_seg_radii, neurites, neurite_type)<EOL>
arithmetic mean of the radii of the points in segments in a collection of neurites