calcDensity edit page

calculate a density function out of (weighted) crystal directions


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


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


sF S2FunHarmonicSym
f function values


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