Skip to contents

Ops for a Finite Distribution

Usage

# S3 method for class 'finite'
Ops(e1, e2)

Arguments

e1, e2

Objects on the left- and right-hand sides of a binary operator, or in the case of a unary operator, e1 is the only argument.

Value

A transformed distribution. This turns out to be another finite distribution, with the original outcomes transformed by the specified Ops.

Details

Although the default Ops for distributions is defined as a wrapper around the verbs shift(), multiply(), flip(), and invert(), the opposite is true for "finite" distributions. This is so that Ops.finite() can piggyback off of the Ops defined on the vector of finite observations.