加入了各种统计值。
This commit is contained in:
11
@ForThesis/MaxDeviation.m
Normal file
11
@ForThesis/MaxDeviation.m
Normal file
@@ -0,0 +1,11 @@
|
||||
function [output_arg]=MaxDeviation(this,PG0,QG0,PD0,QD0)
|
||||
PD0Array=repmat(PD0,1,this.sampleNum);
|
||||
QD0Array=repmat(QD0,1,this.sampleNum);
|
||||
PDMaxDev=max(abs( (this.PDArray-PD0Array)./PD0Array ),[],2);
|
||||
QDMaxDev=max(abs( (this.QDArray-QD0Array)./QD0Array ),[],2);
|
||||
PG0Array=repmat(PG0,this.sampleNum,1);
|
||||
QG0Array=repmat(QG0,this.sampleNum,1);
|
||||
PGMaxDev=max(abs( (PG0Array-this.PGArray)./PG0Array ));
|
||||
QGMaxDev=max( abs( (QG0Array-this.QGArray)./QG0Array ) );
|
||||
output_arg=max([PDMaxDev;QDMaxDev;PGMaxDev;QGMaxDev]);
|
||||
end
|
||||
Reference in New Issue
Block a user