Bayes-space arithmetic on dd / ddl objects
operations.RdBayes-Hilbert space operations on distributional data:
+.dd(p, q): density "addition" \(p \oplus q = pq / \int pq\); clr isclr(p) + clr(q).-.dd(p, q): density "subtraction" \(p \ominus q = (p/q) / Z\); clr isclr(p) - clr(q).*.dd(alpha, p): scalar multiplication \(\alpha \odot p = p^{\alpha} / Z\); clr isalpha * clr(p). One operand must be a numeric scalar;dd * ddis not defined in Bayes space and errors.[.dd(x, i): select realizations from a multi-columndd.
Usage
# S3 method for class 'dd'
e1 + e2
# S3 method for class 'dd'
e1 - e2
# S3 method for class 'dd'
e1 * e2
# S3 method for class 'dd'
x[i]
# S3 method for class 'ddl'
e1 + e2
# S3 method for class 'ddl'
e1 - e2
# S3 method for class 'ddl'
e1 * e2