Description Usage: Arguments: Methods: See Also Examples
Reference Class to create objects that represent normal distributions, which is how players' skills are represented. Gaussian takes arguments (mu, sigma) or (pi, tau), which default to (0, Inf) or (0, 0), respectively. Note: for consistency reasons and not having to update two sets of values, the class only stores pi and tau. Therefore, g1$mu <- 25 and g1$sigma <- 8 does not work as expected, though g1$pi <- 0.04 and g1$tau <- 0.13 does.
Gaussian(mu, sigma)
Gaussian(pi, tau)
is the mean skill
μ
is the std dev of skill
σ
is the precision
( 1 / σ^2)
is the precision adjusted mean
(μ / σ^2)
signature(e1 = Gaussian, e2 = Gaussian)
:...
signature(e1 = Gaussian, e2 = Gaussian)
:...
MuSigma():
returns a list of c(mu, sigma)
mu():
returns mu
sigma():
returns sigma
Divide
and Multiply
These functions are not methods as a new copy of the Gaussian is produced (see example below).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.