ops_finite: Ops for a Finite Distribution

Ops.finiteR Documentation

Ops for a Finite Distribution

Description

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.

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.

Value

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


vincenzocoia/distplyr documentation built on March 5, 2024, 9:45 p.m.