Compute standard deviation of all data Parameters - `input` is the input Array - `bias_kind` of type [VarianceBias][1] denotes the type of variane to be computed Return Values A tuple of 64-bit floating point values with the stat values. [1]: ./enum.VarianceBias.html
(input: &Array<T>, bias_kind: VarianceBias)
| 605 | /// |
| 606 | /// [1]: ./enum.VarianceBias.html |
| 607 | pub fn stdev_all_v2<T: HasAfEnum>(input: &Array<T>, bias_kind: VarianceBias) -> (f64, f64) { |
| 608 | let mut real: f64 = 0.0; |
| 609 | let mut imag: f64 = 0.0; |
| 610 | unsafe { |
| 611 | let err_val = af_stdev_all_v2( |
| 612 | &mut real as *mut c_double, |
| 613 | &mut imag as *mut c_double, |
| 614 | input.get(), |
| 615 | bias_kind as c_uint, |
| 616 | ); |
| 617 | HANDLE_ERROR(AfError::from(err_val)); |
| 618 | } |
| 619 | (real, imag) |
| 620 | } |
| 621 | |
| 622 | /// Compute standard deviation of all data |
| 623 | /// |
no test coverage detected