% selects when it should be trans only...

load parameters_pairwisem_trans_only_023
p_trans=p;
err_history_trans=err_history;
load parameters_pairwisem9_3_023
%good=err_history < err_history_trans
%need to bias in favor of trans; even some can be wrong and still have low err
%good=err_history < .9*err_history_trans % bias in favor of pure translation
good=err_history < .8*err_history_trans % bias in favor of pure translation
p_new=(good*ones(1,9)).*p + ((1-good)*ones(1,9)).*p_trans;

P=pintegrate(p_new(:,1:8),12);

