Skip to content

Commit 52484d0

Browse files
committed
stats: Updated the documentation of NormalGamma
NormalGamma uses variable and parameter syms while it actually accepts only a single symbol. So, in that function, syms was changed to sym.
1 parent a529543 commit 52484d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sympy/stats/joint_rv_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,15 @@ def marginal_distribution(self, indices, *sym):
259259
from sympy.stats.crv_types import GammaDistribution
260260
return Lambda(sym, GammaDistribution(self.alpha, self.beta)(sym[0]))
261261

262-
def NormalGamma(syms, mu, lamda, alpha, beta):
262+
def NormalGamma(sym, mu, lamda, alpha, beta):
263263
"""
264264
Creates a bivariate joint random variable with multivariate Normal gamma
265265
distribution.
266266
267267
Parameters
268268
==========
269269
270-
syms: A symbol/str for identifying the random variable.
270+
sym: A symbol/str for identifying the random variable.
271271
mu: A real number, as the mean of the normal distribution
272272
alpha: a positive integer
273273
beta: a positive integer
@@ -291,7 +291,7 @@ def NormalGamma(syms, mu, lamda, alpha, beta):
291291
292292
A random symbol
293293
"""
294-
return multivariate_rv(NormalGammaDistribution, syms, mu, lamda, alpha, beta)
294+
return multivariate_rv(NormalGammaDistribution, sym, mu, lamda, alpha, beta)
295295

296296
#-------------------------------------------------------------------------------
297297
# Multivariate Beta/Dirichlet distribution ---------------------------------------------------------

0 commit comments

Comments
 (0)