Class Complex128UniformRect
java.lang.Object
org.flag4j.rng.distributions.Distribution<Complex128,RandomComplex>
org.flag4j.rng.distributions.Complex128UniformRect
A rectangular uniform distribution on the complex plane.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double
Upper bound of the imaginary component of the uniform distribution (exclusive).final double
Upper bound of the real component of the uniform distribution (exclusive).final double
Lower bound of the imaginary component of the uniform distribution (inclusive).final double
Lower bound of the real component of the uniform distribution (inclusive).Fields inherited from class org.flag4j.rng.distributions.Distribution
rng
-
Constructor Summary
ConstructorsConstructorDescriptionComplex128UniformRect
(RandomComplex rng, double minRe, double maxRe, double minIm, double maxIm) Constructs a complex rectangular uniform distribution. -
Method Summary
Modifier and TypeMethodDescriptionsample()
Randomly samples this complex rectangular uniform distribution.
-
Field Details
-
minRe
public final double minReLower bound of the real component of the uniform distribution (inclusive). -
maxRe
public final double maxReUpper bound of the real component of the uniform distribution (exclusive). -
minIm
public final double minImLower bound of the imaginary component of the uniform distribution (inclusive). -
maxIm
public final double maxImUpper bound of the imaginary component of the uniform distribution (exclusive).
-
-
Constructor Details
-
Complex128UniformRect
public Complex128UniformRect(RandomComplex rng, double minRe, double maxRe, double minIm, double maxIm) Constructs a complex rectangular uniform distribution.- Parameters:
rng
- Pseudorandom number generator to use when randomly sampling from this distribution.minRe
- Lower bound of the real component of the uniform distribution (inclusive).maxRe
- Upper bound of the real component of the uniform distribution (exclusive).minIm
- Lower bound of the imaginary component of the uniform distribution (inclusive).maxIm
- Upper bound of the imaginary component of the uniform distribution (exclusive).
-
-
Method Details
-
sample
Randomly samples this complex rectangular uniform distribution.- Specified by:
sample
in classDistribution<Complex128,
RandomComplex> - Returns:
- A random value distributed according to this complex rectangular uniform distribution.
-