(
op: &Operator,
left: &Distribution,
right: &Distribution,
)
| 802 | note = "Part of the unused Statistics V2 framework; see https://github.com/apache/datafusion/pull/22071" |
| 803 | )] |
| 804 | pub fn new_generic_from_binary_op( |
| 805 | op: &Operator, |
| 806 | left: &Distribution, |
| 807 | right: &Distribution, |
| 808 | ) -> Result<Distribution> { |
| 809 | Distribution::new_generic( |
| 810 | compute_mean(op, left, right)?, |
| 811 | compute_median(op, left, right)?, |
| 812 | compute_variance(op, left, right)?, |
| 813 | apply_operator(op, &left.range()?, &right.range()?)?, |
| 814 | ) |
| 815 | } |
| 816 | |
| 817 | /// Computes the mean value for the result of the given binary operation on |
| 818 | /// two unknown quantities represented by their [`Distribution`] objects. |
no test coverage detected
searching dependent graphs…