13 lines
253 B
Matlab
13 lines
253 B
Matlab
function [ output_args ] = PercentOfPass( this, PG0,QG0,PD0,QD0 )
|
|
%% 估计值合格率
|
|
PD=this.PDArray(:,end);%用最后一列
|
|
QD=this.QDArray(:,end);%用最后一列
|
|
t1=PD-PD0;
|
|
t2=QD-QD0;
|
|
t3=abs(t1)/3*0.05;
|
|
t4=abs(t2)/3*0.05;
|
|
output_args=sum(t3<=1)+sum(t4<=1);
|
|
|
|
end
|
|
|