I want to find the average value for a 3D distribution. In other words I have a predefined volume, each point(location) in the volume has a different value. I want to approximate the average of these values. I would like help with finding a good as possible solution.
I have a script in Matlab that can calculate the value of one point in the 3D space. In 2D I can see how to do this more or less with superposition and matrices but I find it hard to extrapolate this to a 3D situation (and 4D space).
In my specific case the volume will be a cylinder.
Later on I will have to multiply these cloud values with another 3d distribution, however should I be able to understand this then I think I will be able to solve that problem.