def _csiszar_vimco_helper(self, logu):
<EOL>logu = np.float128(logu)<EOL>n = logu.shape[<NUM_LIT:0>]<EOL>u = np.exp(logu)<EOL>loogeoavg_u = []  <EOL>for j in range(n):<EOL><INDENT>loogeoavg_u.append(np.exp(np.mean(<EOL>[logu[i, ...] for i in range(n) if i != j],<EOL>axis=<NUM_LIT:0>)))<EOL><DEDENT>loogeoavg_u = np.array(loogeoavg_u)<EOL>loosum_u = []  <EOL>for j in range(n):<EOL><INDENT>loosum_u.append(np.sum(<EOL>[u[i, ...] for i in range(n) if i != j],<EOL>axis=<NUM_LIT:0>))<EOL><DEDENT>loosum_u = np.array(loosum_u)<EOL>log_sooavg_u = np.log(loosum_u + loogeoavg_u) - np.log(n)<EOL>log_avg_u = np.log(np.mean(u, axis=<NUM_LIT:0>))<EOL>return log_avg_u, log_sooavg_u<EOL>
Numpy implementation of `csiszar_vimco_helper`.