calcDensity edit page

calculate a density function out of (weighted) crystal directions

Syntax

sF = calcDensity(h)
sF = calcDensity(h,'weights',w)
sF = calcDensity(h,'halfwidth',delta)
sF = calcDensity(h,'kernel',psi)
 f = calcDensity(h,S2G)

Input

h list of crystal directions Miller
S2G vector3d
w weights, default is all one
delta halfwidth of the kernel, default is 10 degree
psi S2Kernel function, default is de la Vallee Poussin

Output

sF S2FunHarmonicSym
f function values

Options

halfwidth halfwidth of a kernel
kernel specify a kernel
weights vector of weights, with same length as v
noSymmetry ignore symmetry