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

Function stdev_all_v2

src/statistics/mod.rs:607–620  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

605///
606/// [1]: ./enum.VarianceBias.html
607pub 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///

Callers 1

stdev_allFunction · 0.85

Calls 2

HANDLE_ERRORFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected