Skip to content

Commit

Permalink
small adjustments for fusion frames
Browse files Browse the repository at this point in the history
  • Loading branch information
allthatsounds committed Oct 16, 2023
1 parent 1fcc752 commit c285a67
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
8 changes: 4 additions & 4 deletions comp/comp_fudual.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function FfD = fudual(F, L)
function FfD = comp_fudual(F, L)
%FUDUAL dual fusion frame
%
% Input parameters:
Expand All @@ -17,7 +17,7 @@

complainif_notvalidframeobj(F,'Fudual');

F = checkfudim(F, L);
F = comp_checkfudim(F, L);

if ~strcmp(F.type, 'fusion')
error('fudual only works for fusion frames');
Expand All @@ -27,8 +27,8 @@
Sf = F.frameoperator;
else
Id = eye(F.cdim);
c = fuana(F,Id);
Sf = fusyn(F,c);
c = comp_fuana(F,Id);
Sf = comp_fusyn(F,c);
F.frameoperator = Sf;
end

Expand Down
12 changes: 9 additions & 3 deletions frames/frameaccel.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,15 @@
F.L=L;
F = comp_checkfudim(F, L);
F.fuana = comp_fuana(F, eye(L));
F.fusyn = comp_fusyn(F, eye(L));
F.fusyn = comp_fusyn(F, ones(L,F.Nframes));
F.localdual = comp_fudual(F, eye(L));
[F.A, F.B] = framebounds(F.frameoperator);
if ~isfield(F, 'frameoperator')
Id = eye(F.cdim);
c = comp_fuana(F,Id);
Sf = comp_fusyn(F,c);
F.frameoperator = Sf;
end
[F.A, F.B] = framebounds(F);
F.istight = 0;
F.isparseval = 0;
F.isuniform = 0;
Expand All @@ -56,7 +62,7 @@
F.isparseval = 0;
end
end
if sum(F.w)/length(w) == 1
if sum(F.w)/length(F.w) == 1
F.isuniform = 1;
end
return;
Expand Down
2 changes: 1 addition & 1 deletion frames/fusionframe.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
definput.keyvals.weights = ones(framenumber, 1);
definput.import={'fusionframe'};

[~,kv]=ltfatarghelper({'framenumber'},definput,varargin,'fusionframe');
[~,kv]=ltfatarghelper({},definput,varargin,'fusionframe');


supported_frames = fieldnames(kv);
Expand Down

0 comments on commit c285a67

Please sign in to comment.