def neurite_volume_density(neurites, neurite_type=NeuriteType.all):
def vol_density(neurite):<EOL><INDENT>'''<STR_LIT>'''<EOL>return neurite.volume / convex_hull(neurite).volume<EOL><DEDENT>return list(vol_density(n)<EOL>for n in iter_neurites(neurites, filt=is_type(neurite_type)))<EOL>
Get the volume density per neurite

    The volume density is defined as the ratio of the neurite volume and
    the volume of the neurite's enclosing convex hull