We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00794ff commit a45fffbCopy full SHA for a45fffb
src/probabilit/iman_conover.py
@@ -98,9 +98,6 @@ def __init__(self, correlation_matrix):
98
def __call__(self, X):
99
"""Transform an input matrix X.
100
101
- The output will have the same marginal distributions, but with
102
- induced correlation.
103
-
104
Parameters
105
----------
106
X : ndarray
@@ -127,6 +124,10 @@ def __call__(self, X):
127
124
msg += f"correlation matrix ({self.P.shape})"
128
125
raise ValueError(msg)
129
126
+ if N <= K:
+ msg = f"The matrix X must have rows > columns. Got shape: {X.shape}"
+ raise ValueError(msg)
130
+
131
# Remove existing mean and std from marginal distributions
132
mean = np.mean(X, axis=0)
133
std = np.std(X, axis=0)
0 commit comments