Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 566b6c8

Browse files
author
Carsten
committed
Consistency define variables mu and scale as tuples.
1 parent 2d1fca7 commit 566b6c8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

examples/statistics/confidence_ellipse.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def get_correlated_dataset(n, dependency, mu, scale):
136136
}
137137

138138
mu = 2, 4
139-
scale = np.array([3, 5]).T
139+
scale = 3, 5
140140

141141
fig, axs = plt.subplots(1, 3, figsize=(9, 3))
142142
for ax, (title, dependency) in zip(axs, PARAMETERS.items()):
@@ -167,8 +167,8 @@ def get_correlated_dataset(n, dependency, mu, scale):
167167
[0.8, 0.75],
168168
[-0.2, 0.35]
169169
])
170-
mu = np.array([0, 0]).T
171-
scale = np.array([8, 5]).T
170+
mu = 0, 0
171+
scale = 8, 5
172172

173173
ax_nstd.axvline(c='grey', lw=1)
174174
ax_nstd.axhline(c='grey', lw=1)
@@ -202,8 +202,8 @@ def get_correlated_dataset(n, dependency, mu, scale):
202202
[-0.8, 0.5],
203203
[-0.2, 0.5]
204204
])
205-
mu = np.array([2, -3]).T
206-
scale = np.array([6, 5]).T
205+
mu = 2, -3
206+
scale = 6, 5
207207

208208
ax_kwargs.axvline(c='grey', lw=1)
209209
ax_kwargs.axhline(c='grey', lw=1)

0 commit comments

Comments
 (0)