Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scipy/stats/_multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3858,6 +3858,7 @@ class random_correlation_gen(multi_rv_generic):
r"""A random correlation matrix.

Return a random correlation matrix, given a vector of eigenvalues.
The returned matrix is symmetric positive semidefinite with unit diagonal.

The `eigs` keyword specifies the eigenvalues of the correlation matrix,
and implies the dimension.
Expand All @@ -3870,7 +3871,8 @@ class random_correlation_gen(multi_rv_generic):
Parameters
----------
eigs : 1d ndarray
Eigenvalues of correlation matrix
Eigenvalues of correlation matrix. All eigenvalues need to be non-negative and
need to sum to the number of eigenvalues.
seed : {None, int, `numpy.random.Generator`, `numpy.random.RandomState`}, optional
If `seed` is None (or `np.random`), the `numpy.random.RandomState`
singleton is used.
Expand Down