Compute median of all data Parameters - `input` is the input Array Return Values A tuple of 64-bit floating point values with the median
(input: &Array<T>)
| 367 | /// |
| 368 | /// A tuple of 64-bit floating point values with the median |
| 369 | pub fn median_all<T>(input: &Array<T>) -> (f64, f64) |
| 370 | where |
| 371 | T: HasAfEnum + MedianComputable, |
| 372 | { |
| 373 | let mut real: f64 = 0.0; |
| 374 | let mut imag: f64 = 0.0; |
| 375 | unsafe { |
| 376 | let err_val = af_median_all( |
| 377 | &mut real as *mut c_double, |
| 378 | &mut imag as *mut c_double, |
| 379 | input.get(), |
| 380 | ); |
| 381 | HANDLE_ERROR(AfError::from(err_val)); |
| 382 | } |
| 383 | (real, imag) |
| 384 | } |
| 385 | |
| 386 | macro_rules! stat_wtd_all_func_def { |
| 387 | ($doc_str: expr, $fn_name: ident, $ffi_fn: ident) => { |
nothing calls this directly
no test coverage detected