Would like to know how this code be vectorized:
for y=1:rows for x=1:cols nEnergy(y,x) = (Energy(y,x) - min(Energy)) / (max(Energy) - min(Energy)); endendfor y=1:rows for x=1:cols weight(y,x) = dot(nEnergy(y,x), delta(y,x)); endend
nEnergy, weight, delta is an array.
Best Answer