function res = cumulmoy4(k,j,t,sp,v)

l = length(sp);
s = 0;

for m = 1:l
    for mm = 1:l
        s = s +(abs(v(1,mm))*abs(v(1,m)))^2*sp(m)^k*sp(mm)^j*sinc(t*(sp(m)-sp(mm)));
    end
end

res = l^(-2)*s;




end
