aspcore.montecarlo

Functions for Monte Carlo integration

References

Functions

diagnostics(new_val, old_val, block_idx)

integrate(func, point_generator, ...[, ...])

pointGenerator should return np array, [numPoints, numSpatialDimensions] func should return np array [funcDims, numPoints], where funcDims can be any number of dimensions (in a multidimensional array sense)

sample_complex_gaussian(mean, cov, rng, ...)

Sample from a circularly symmetric complex Gaussian distribution with given mean and covariance matrix.

uniform_random_on_circle(num_points, rng)

Generate uniformly random points on the unit circle in R^3.

uniform_random_on_sphere(num_points, rng)

Generate uniformly random points on the unit sphere.