1 function [g6C] = g6_struct(
X,
Y,
rad)
2 %Determine the orientational correlation
function between every pairing of
3 %
points, and sorts the results based
on distance between
points. This gives
6 %
rad: Radius in which to examine
for neighbouring
points.
8 %
g6C: Matrix of
g6 values and parameters
10 %Determine all orientational order values
for points 16 %Calculate all n choose
k pairings of
points, and give distance between
17 %
them, values
for the respective orientational
orders, and
g6 values. Sort
18 %the values based
on separated distance
19 S = uniqPairIdx_precalc([
X,
Y],psi6p);
20 [~,order] = sort([
S(:).rabs],
'ascend');
23 %Create output structure
for next stage of calculation
30 g6C = cell2mat(squeeze(struct2cell(
g6S)));
and sorts the results based on distance between points This gives % g6(r). % X
and sorts the results based on distance between points This gives % Y
__global__ void zeros(double *field, int n)
Creates a field of all zeros ,.
end % Calculate all n choose k pairings of points
end % Calculate all n choose k pairings of and give distance between % values for the respective orientational orders
end % Calculate all n choose k pairings of and give distance between % them
end % Calculate all n choose k pairings of and give distance between % values for the respective orientational and g6 values Sort % the values based on separated distance S
and sorts the results based on distance between points This gives % y values for points % rad
and sorts the results based on distance between points This gives % y values for points % for ii
double2 conj(double2 c)
Calculates complex conjugate.