Result containers
Binned results. Raw accumulators carry the …SumsAndCounts suffix and add across processes and time steps; the bare names are the averaged views.
StructureFunctions.StructureFunctionObjects.AbstractStructureFunctionStructureFunctions.StructureFunctionObjects.HelmholtzDecomposition2DStructureFunctions.StructureFunctionObjects.StructureFunctionStructureFunctions.StructureFunctionObjects.StructureFunction2DSumsAndCountsStructureFunctions.StructureFunctionObjects.StructureFunctionSumsAndCountsStructureFunctions.StructureFunctionObjects.StructureFunctionTensorStructureFunctions.StructureFunctionObjects.StructureFunctionTensor2DSumsAndCountsStructureFunctions.StructureFunctionObjects.StructureFunctionTensorSumsAndCountsStructureFunctions.StructureFunctionObjects.marginalizeStructureFunctions.StructureFunctionObjects.to_host
StructureFunctions.StructureFunctionObjects.AbstractStructureFunction — Type
AbstractStructureFunctionAbstract base type for all structure function result containers.
StructureFunctions.StructureFunctionObjects.HelmholtzDecomposition2D — Type
HelmholtzDecomposition2D(distance_bins, rotational_sums, rotational_counts,
divergent_sums, divergent_counts,
longitudinal_values, transverse_values)Result of the 2D isotropic Helmholtz decomposition computed from binned longitudinal/transverse second-order structure functions. Rotational and divergent components are derived quantities, not pairwise operators.
StructureFunctions.StructureFunctionObjects.StructureFunction — Type
StructureFunction{FT, OT, BT, VT}Mean pair statistic for operator. For distance-bin edges of length B+1, values has shape (B, batch...). For HarmonicNodes, its leading axis has one value per node. Empty pair bins contain NaN.
distance holds the original bin edges or harmonic nodes. Use midpoints to obtain representative separations for bins. Value arrays retain their execution backend; to_host copies their numerical buffers to host memory.
StructureFunctions.StructureFunctionObjects.StructureFunction2DSumsAndCounts — Type
StructureFunction2DSumsAndCounts{FT, OT, BT, VT, MT, CT, AT}Joint histogram of separation and a second bin coordinate. sums and counts have matching shape (B_distance, B_second, batch...); each edge vector has one more element than its corresponding histogram axis. second_axis is the source the second coordinate reads from each pair: the operator value (InvariantValueAxis()) or the angle of the separation (SeparationAngleAxis).
sums accumulates actual pair values, including weights when supplied. counts stores integer pair counts or floating-point mass for weighted or split contributions. Divide by the appropriate total and bin widths explicitly when constructing a probability density.
StructureFunctions.StructureFunctionObjects.StructureFunctionSumsAndCounts — Type
StructureFunctionSumsAndCounts{FT, OT, BT, VT}Raw pair sums and normalization with matching shape (B, batch...). Distance edges have length B+1; harmonic results have one slot per node. Unweighted pair counts are integers. Weighted calculations store floating-point pair mass. Add compatible results before dividing sums by counts. Integer addition checks for overflow. to_host copies both numerical arrays to the host.
StructureFunctions.StructureFunctionObjects.StructureFunctionTensor — Type
StructureFunctionTensor(order, distance_bins, values)Averaged binned tensor structure function — the mean tensor $D_{i…}(r)$ per distance bin (the sums ./ counts reduction of a StructureFunctionTensorSumsAndCounts, with the empty-bin guard count == 0 → NaN). For tensor order P and spatial dimension D, values has leading axes (D, D, ..., D, n_bins, auxiliary...) with P repeated component axes. This is the default result of calculate_structure_function_tensor; pass StructureFunctionTensorSumsAndCounts as its result type for the raw accumulator.
StructureFunctions.StructureFunctionObjects.StructureFunctionTensor2DSumsAndCounts — Type
StructureFunctionTensor2DSumsAndCounts(order, distance_bins, axis_bins, sums, counts)Raw tensor structure function joint in separation and a second axis: sums has shape (D, …, D, n_bins, n_axis) with P component axes, counts (n_bins, n_axis), axis_bins the edges of the second axis.
StructureFunctions.StructureFunctionObjects.StructureFunctionTensorSumsAndCounts — Type
StructureFunctionTensorSumsAndCounts(order, distance_bins, sums, counts)Raw binned tensor structure-function result. For tensor order P and spatial dimension D, sums has leading axes (D, D, ..., D, n_bins, auxiliary...) with P repeated component axes. counts has shape (n_bins, auxiliary...).
StructureFunctions.StructureFunctionObjects.marginalize — Method
marginalize(sf2d::StructureFunction2DSumsAndCounts)Sum $sums$ and $counts$ over the value-bin axis to produce a 1D $StructureFunctionSumsAndCounts$ (mass-conserving reduction of a 2D joint histogram).
StructureFunctions.StructureFunctionObjects.to_host — Method
to_host(result)Copy numerical result buffers to host Arrays while preserving operators, bin metadata, tensor order, and batch axes. Device-to-host copies complete before this call returns. Host input buffers are copied as well.
Named tuples of results, including single-pass calculations, are converted recursively.