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

Function cov

src/statistics/mod.rs:266–280  ·  view source on GitHub ↗
(x: &Array<T>, y: &Array<T>, isbiased: bool)

Source from the content-addressed store, hash-verified

264/// An Array with Covariance values
265#[deprecated(since = "3.8.0", note = "Please use cov_v2 API")]
266pub fn cov<T>(x: &Array<T>, y: &Array<T>, isbiased: bool) -> Array<T::MeanOutType>
267where
268 T: HasAfEnum + CovarianceComputable,
269 T::MeanOutType: HasAfEnum,
270{
271 cov_v2(
272 x,
273 y,
274 if isbiased {
275 VarianceBias::SAMPLE
276 } else {
277 VarianceBias::POPULATION
278 },
279 )
280}
281
282/// Compute Variance of all elements
283///

Callers

nothing calls this directly

Calls 1

cov_v2Function · 0.85

Tested by

no test coverage detected