neurom.analysis.morphmath.segment_taper_rate

neurom.analysis.morphmath.segment_taper_rate(seg)

Compute the taper rate of a segment

Returns:The taper rate, defined as the absolute value of the difference in the diameters of the segment’s two points divided by the euclidian distance between them.