public static AFArray Var(AFArray arr, int dim, bool isbiased = false) { IntPtr ptr; Internal.VERIFY(AFStatistics.af_var(out ptr, arr._ptr, isbiased, dim)); return(new AFArray(ptr)); }
public static SuperArray Var(SuperArray arr, uint dim, bool isbiased = false) { AFArray y = CreateMajorSupportedArray(arr); IntPtr ptr; Internal.VERIFY(AFStatistics.af_var(out ptr, y._ptr, isbiased, dim)); return(new SuperArray(new AFArray(ptr))); }