Skip to content
Advertisement

Tag: variance

Calculate squared deviation from the mean for each element in array

I have an array with shape (128,116,116,1), where 1st dimension asthe number of subjects, with the 2nd and 3rd being the data. I was trying to calculate the variance (squared deviation from the mean) at each position (i.e: in (0,0), (0,1), (1,0), etc… until (116,116)) for all the 128 subjects, resulting in an array with shape (116,116). Can anyone tell

Advertisement