MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / stdev_v2

Function stdev_v2

src/statistics/mod.rs:557–573  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

555///
556/// [1]: ./enum.VarianceBias.html
557pub fn stdev_v2<T>(input: &Array<T>, bias_kind: VarianceBias, dim: i64) -> Array<T::MeanOutType>
558where
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///

Callers 1

stdevFunction · 0.85

Calls 3

HANDLE_ERRORFunction · 0.85
intoMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected