Generic method for obtaining the conditional distribution of a distribution object x given condition P.

conditional(x, P, ...)

Arguments

x

The empirical distribution object.

P

The predicate function to condition x on

...

additional arguments to pass into P