utils.integrands.volume module¶
- class HyperrectangleVolumeIntegrand(*args, **kwargs)[source]¶
Bases:
utils.integrands.volume.VolumeIntegrand
,utils.integrands.abstract.KnownIntegrand
Characteristic function of an hyperrectangle defined by cutting the unit hypercube along one axis. Its characteristic inequality is x[i] <= frac where 0. < frac < 1.
- Parameters
d (int) –
split_dim (int) –
frac (float) –
- class HypersphereVolumeIntegrand(*args, **kwargs)[source]¶
Bases:
utils.integrands.volume.VolumeIntegrand
,utils.integrands.abstract.KnownIntegrand
Characteristic function of an hypersphere. The hypersphere must fit in the unit hypercube fully
- Parameters
d (int) –
r (float) –
c (torch.Tensor or float) –
- class RegulatedHyperSphereIntegrand(*args, **kwargs)[source]¶
Bases:
utils.integrands.abstract.RegulatedKnownIntegrand
,utils.integrands.volume.HypersphereVolumeIntegrand
Characteristic function of an hypersphere with a small regulating factor. The hypersphere must fit in the unit hypercube fully
- Parameters
d (int) –
r (float) –
c (torch.Tensor or float) –
- class RegulatedHyperSphericalCamel(*args, **kwargs)[source]¶
Bases:
utils.integrands.abstract.KnownIntegrand
Camel function consisting of the sum of two regulated hyperspherical volume functions with centers at (0.25, …, 0.25) and (0.75, …, 0.75)
- class RegulatedSymmetricHyperSphericalCamel(*args, **kwargs)[source]¶
Bases:
utils.integrands.volume.RegulatedHyperSphericalCamel
Camel function consisting of the sum of two regulated hyperspherical volume functions with centers at (0.25, …, 0.25) and (0.75, …, 0.75) with identical radii
- class VolumeIntegrand(*args, **kwargs)[source]¶
Bases:
utils.integrands.abstract.Integrand
,better_abc.ABC
Abstract class to define integrands that are 1 on a characteristic subspace and 0 outside, defined through an inequality f(x) >= 0