function [Data] = pvwcg(M,blk,opts,PrevData,cbnd)
%function [Data] = pvwcg(M,blk,opts,PrevData,cbnd)

% Copyright 2003-2004 The MathWorks, Inc.

if nargin==4
   cbnd.diff = 0;
   cbnd.ratio = 1;
elseif nargin==3
   cbnd.diff = 0;
   cbnd.ratio = 1;
   PrevData = [];
end
opts.AbsTol = opts.AbsTol+max(cbnd.diff);
opts.RelTol = (1+opts.RelTol)*max(cbnd.ratio) -  1;
%if opts.ptwise==1
%   [Data] = pvwcgptwise(M,blk,opts,PrevData);  
%else

[Data] = pvwcgpeak(M,blk,opts,PrevData);
%end