function module.NormalizeArrayWithSatellite(f,N)local o=module.Sum(f)if o==0 then return end for N=1,#f,1 do f[N]=f[N]/o end for f=1,#N,1 do N[f]=N[f]/o end end

function module.NormalizeArrayWithSatellite(array, satellite)
	local sum = module.Sum(array);
	if sum==0 then return; end
	for i = 1, #array do
		array[i] = array[i] / sum;
	end
	for i = 1, #satellite do
		satellite[i] = satellite[i] / sum;
	end
end
