Standard deviation along given axis Parameters - `input` is the input Array - `bias_kind` of type [VarianceBias][1] denotes the type of variane to be computed - `dim` is dimension along which the current stat has to be computed Return Values An Array whose size is equal to input except along the dimension which the stat operation is performed. Array size along `dim` will be reduced to one. [1
(input: &Array<T>, bias_kind: VarianceBias, dim: i64)
| 555 | /// |
| 556 | /// [1]: ./enum.VarianceBias.html |
| 557 | pub fn stdev_v2<T>(input: &Array<T>, bias_kind: VarianceBias, dim: i64) -> Array<T::MeanOutType> |
| 558 | where |
| 559 | T: HasAfEnum, |
| 560 | T::MeanOutType: HasAfEnum, |
| 561 | { |
| 562 | unsafe { |
| 563 | let mut temp: af_array = std::ptr::null_mut(); |
| 564 | let err_val = af_stdev_v2( |
| 565 | &mut temp as *mut af_array, |
| 566 | input.get(), |
| 567 | bias_kind as c_uint, |
| 568 | dim, |
| 569 | ); |
| 570 | HANDLE_ERROR(AfError::from(err_val)); |
| 571 | temp.into() |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | /// Standard deviation along specified axis |
| 576 | /// |
no test coverage detected