Class Complex128BiGaussian
java.lang.Object
org.flag4j.rng.distributions.Distribution<Complex128,RandomComplex>
org.flag4j.rng.distributions.Complex128BiGaussian
A 2D bivariateGaussian distribution on the complex plane.
-
Field Summary
Fields inherited from class org.flag4j.rng.distributions.Distribution
rng
-
Constructor Summary
ConstructorsConstructorDescriptionComplex128BiGaussian
(RandomComplex rng, double meanRe, double stdRe, double meanIm, double stdIm) Constructs 2D bivariateGaussian distribution on the complex plane with a correlation coefficient of zero.Complex128BiGaussian
(RandomComplex rng, double meanRe, double stdRe, double meanIm, double stdIm, double corrCoeff) Constructs 2D bivariateGaussian distribution on the complex plane with a specified correlation coefficient. -
Method Summary
-
Constructor Details
-
Complex128BiGaussian
public Complex128BiGaussian(RandomComplex rng, double meanRe, double stdRe, double meanIm, double stdIm) Constructs 2D bivariateGaussian distribution on the complex plane with a correlation coefficient of zero. To specify a correlation coefficient useComplex128BiGaussian(RandomComplex, double, double, double, double, double)
.- Parameters:
rng
- Pseudorandom number generator to use when randomly sampling from this distribution.meanRe
- Mean along real axis of complex plane for the distribution.stdRe
- Standard deviation along real axis of complex plane for the distribution.meanIm
- Mean along imaginary axis of complex plane for the distribution.stdIm
- Standard deviation along imaginary axis of complex plane for the distribution.
-
Complex128BiGaussian
public Complex128BiGaussian(RandomComplex rng, double meanRe, double stdRe, double meanIm, double stdIm, double corrCoeff) Constructs 2D bivariateGaussian distribution on the complex plane with a specified correlation coefficient.- Parameters:
rng
- Pseudorandom number generator to use when randomly sampling from this distribution.meanRe
- Mean along real axis of complex plane for the distribution.stdRe
- Standard deviation along real axis of complex plane for the distribution.meanIm
- Mean along imaginary axis of complex plane for the distribution.stdIm
- Standard deviation along imaginary axis of complex plane for the distribution.corrCoeff
- Correlation coefficient of the bivariate distribution.
-
-
Method Details
-
sample
Randomly samples this distribution.- Specified by:
sample
in classDistribution<Complex128,
RandomComplex> - Returns:
- A random value distributed according to this distribution.
-