Hadoop Online Training by Edureka

Arith: Arith methods for hyperdirichlet objects

Description Value Note Author(s) See Also Examples

Description

Methods for Arithmetic functions on hyperdirichlet objects. There are only two operations:

  • Add two of the same dimensions, as in ‘a+b

  • Multiply a hyperdirichlet object by a length-one scalar, as in ‘a*5

Both these operations result in the normalization constant becoming unknown.

No unary operations are defined.

Value

Arithmetic functions on hyperdirichlet objects return hyperdirichlet objects. Multiplication operates on the powers (not parameters), thus it is defined so that a+a = 2*a = a*2; associativity means that a+...+a (n copies) equals n*a.

Note

The package delegates ‘a+b’ to hd_add(), which the user should use if more control is desired.

Author(s)

Robin K. S. Hankin

See Also

hd_add

Examples

1
2
3
gd(1:3,1:3) + dirichlet(1:4)

dirichlet(1:4) * 10


Search within the hyperdirichlet package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.