for thresh = 1:100
	pxatw1 = sum(npp(thresh:100))./10;
	pxatw2 = sum(rpp(thresh:100))./10;
	pxbtw1 = sum(npp(1:thresh))./10;
	pxbtw2 = sum(rpp(1:thresh))./10;
%	e2(thresh) = pxatw1./(pxatw1+pxatw2);
%	e1(thresh) = pxbtw2./(pxbtw1+pxbtw2);

	costc1(thresh) = .35*pxbtw1*40 + .65*pxbtw2*115;
	costc2(thresh) = .35*pxatw1*140 + .65*pxatw2*75;

	e2(thresh) = pxatw1;
	e1(thresh) = pxbtw2;

	alx(thresh) = pxatw1;
	aly(thresh) = pxatw2;
end