-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
| We should be able to help you with this, but can you edit your question to paste code as text within triple-tick code blocks rather than including code by screenshot? It helps to be able to copy-paste your for-loop rather than having to transcribe it from the image. Thanks! | 
Beta Was this translation helpful? Give feedback.
-
| 
 | 
Beta Was this translation helpful? Give feedback.



Setup. I used the following code as setup.
Fixing bug in provided solution. I believe that your code does not solve the problem that you'd actually like to solve, i.e. computing a mean. For this, note that when a tuple of indices
i,j,kappears multiple times in the arrayijk, then the entries instresses[i, j, k, :]are divided bycount[i, j, k]multiple times - once for each occurrence of the indicesi,j,kinijk.This can be fixed dividing all non…