randomstate.prng.dsfmt.
complex_normal
(loc=0.0, gamma=1.0, relation=0.0, size=None, method='bm')¶Draw random samples from a complex normal (Gaussian) distribution.
Parameters: |
|
---|---|
Returns: | out – Drawn samples from the parameterized complex normal distribution. |
Return type: | ndarray or scalar |
See also
numpy.random.normal()
Notes
EXPERIMENTAL Not part of official NumPy RandomState, may change until formal release on PyPi.
Complex normals are generated from a bivariate normal where the variance of the real component is 0.5 Re(gamma + relation), the variance of the imaginary component is 0.5 Re(gamma - relation), and the covariance between the two is 0.5 Im(relation). The implied covariance matrix must be positive semi-definite and so both variances must be zero and the covariance must be weakly smaller than the product of the two standard deviations.
References
[1] | Wikipedia, “Complex normal distribution”, https://en.wikipedia.org/wiki/Complex_normal_distribution |
[2] | Leigh J. Halliwell, “Complex Random Variables” in “Casualty Actuarial Society E-Forum”, Fall 2015. |
Examples
Draw samples from the distribution:
>>> s = np.random.complex_normal(size=1000)