GaussianMeasure¶
- class probnum.quad.GaussianMeasure(mean, cov, input_dim=None)¶
Bases:
IntegrationMeasureGaussian measure on Euclidean space with given mean and covariance.
If
meanandcovare scalars butinput_dimis larger than one,meanandcovare extended to a constant vector and diagonal matrix, respectively, of appropriate dimensions.- Parameters
- Return type
None
Methods Summary
__call__(points)Evaluate the density function of the integration measure.
sample(n_sample[, rng])Sample
n_samplepoints from the integration measure.Methods Documentation
- __call__(points)¶
Evaluate the density function of the integration measure.
- Parameters
points (Union[FloatLike, np.ndarray]) – shape=(n_points, input_dim) – Input locations.
- Returns
shape=(n_points,) – Density evaluated at given locations.
- Return type
density_evals
- sample(n_sample, rng=Generator(PCG64) at 0x7F0349B6D2E0)¶
Sample
n_samplepoints from the integration measure.