I have a raster grid and some shapes (see figure below, in which only one of the shapes red is depicted). For each raster cell, I am checking how much of the area of the raster cell is overlapping with any of the shapes. Afterwards, I am multiplying the overlapping areas with a value that represents a property of the raster cell (e.g. population) and sum this up (equivalent to Microsoft Excel's SUMPRODUCT() function).
How would I write a corresponding equation in mathematical notation?
Raster cell index i,j
Shape file index k
