DistributionPolynomialPackage(R, S, UPS)ΒΆ
distro.spad line 1015 [edit on github]
S: Join(CommutativeRing, Module R)
UPS: UnivariatePolynomialCategory S
A package to apply polynomial transformations to distributions and integrate polynomials with respect to distributions.
- apply: (UPS, Distribution R) -> Distribution S
apply(p, d)
computes the distribution of the random variablep(X)
$ whereX
has distributiond
.
- eval: (Distribution R, UPS) -> S
eval(d, p)
evaluates the distributiond
as a linear functional on the polynomialp
. Same asintegrate(p, d)
.
- integrate: (UPS, Distribution R) -> S
integrate(p, d)
integrates the polynomialp
against the distributiond
. Same aseval(d, p)
.