calcTDF edit page

calc circular axis/ trend distribution function of grain long axes OR grain boundary segments or from a list of angles for axial data (0:pi)

Note: In case of boundaries, this function only makes sense for smoothed boundaries and one would potentially remove grains touching the edge of the map unless only indexed-phase gbs are considered!

Syntax

[freq,bc] = calcTDF(smoothgrains.boundary('indexed'))
[freq,bc] = calcTDF(smoothgrains('indexed'))

Input

gb grainBoundary
grains @grains
azi angle in radians

Output

totfreq population density of bin (radius)
bc center of bin (angle)
azi list of all azimuth/trends

Options

binwidth angular binwith in radian (keyword,value)
freq instead of length, do frequencies only
weights instead of length, use weights