LebesgueMeasure

class probnum.quad.LebesgueMeasure(domain, input_dim=None, normalized=False)

Bases: probnum.quad.IntegrationMeasure

Lebesgue measure on a hyper-rectangle.

Parameters

Methods Summary

__call__(points)

Evaluate the density function of the integration measure.

sample(n_sample[, rng])

Sample n_sample points from the integration measure.

Methods Documentation

__call__(points)[source]

Evaluate the density function of the integration measure.

Parameters

points (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 0x7F9633319660)[source]

Sample n_sample points from the integration measure.

Parameters
Returns

shape=(n_sample,input_dim) – Sampled points

Return type

points