lib.samples.mesh.sample_cic¶
- lib.samples.mesh.sample_cic(edges, samples, weights=None)¶
Interpolate
sampleson mesh with Cloud-in-Cell (CIC) scheme.- Parameters
edges (list) – List of mesh edges (one array for each mesh dimension).
samples (array) – Array of positions, with coordinates along first axis.
weights (array, default=None) – Sample weights, defaults to 1.
- Returns
pdf – Array with shape given by the length of edges along each dimension.
- Return type
array