Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
aalanwar committed Oct 16, 2022
1 parent 2d6037a commit 5d97fe6
Show file tree
Hide file tree
Showing 74 changed files with 161 additions and 4,265 deletions.
78 changes: 0 additions & 78 deletions @logicalZonotope/cartProd.asv

This file was deleted.

13 changes: 4 additions & 9 deletions @logicalZonotope/cartProd.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,21 @@
% Z - zonotope object
%
% Example:
% zono1 = zonotope.generateRandom(2);
% zono2 = zonotope.generateRandom(3);
%
% zono = cartProd(zono1,zono2);
%
% Other m-files required: none
% Subfunctions: none
% MAT-files required: none
%
% See also: none

% Author: Matthias Althoff
% Written: 18-May-2011
% Last update: 27-Aug-2019
% 05-May-2020 (MW, standardized error message)
% Author: Amr Alanwar
% Written: 16-October-2022
% Last update:
%
% Last revision:---

%------------- BEGIN CODE --------------

% first or second set is zonotope


if(~isempty(Z1.c) & ~isempty(Z2.c))
Expand Down
16 changes: 4 additions & 12 deletions @logicalZonotope/containsPoint.m
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
function res = containsPoint(Z,p,varargin)
% containsPoint - determines if the point p is inside the zonotope Z1
function res = containsPoint(Z,p)
% containsPoint - determines if the point p is inside the logical zonotope Z1
%
% Syntax:
% res = containsPoint(Z,p)
% res = containsPoint(Z,p,tolerance)
%
% Inputs:
% Z - zonotope object
% p - point specified as a vector
% tolerance - numerical tolerance up to which the point is allowed to
% outside the zonotope
%
% Outputs:
% res - boolean whether the point is inside the zonotope or not
Expand All @@ -19,17 +16,15 @@
% p = [1;0];
% res = containsPoint(Z,p);
%
% plot(Z); hold on;
% scatter(p(1),p(2),16,'r');
%
% Other m-files required: none
% Subfunctions: none
% MAT-files required: none
%
% See also: ---

% Author: Niklas Kochdumper
% Written: 30-January-2018
% Author: Amr Alanwar
% Written: 16-October-2022
% Last update: ---
% Last revision:---

Expand Down Expand Up @@ -62,9 +57,6 @@
return;
end




end

else
Expand Down
23 changes: 2 additions & 21 deletions @logicalZonotope/enclosePoints.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
% points - matrix storing point cloud (dimension: [n,p] for p points)
%
% Outputs:
% Z - zonotope object
% Z - logical zonotope object
%
% Example:
%
Expand All @@ -17,34 +17,15 @@
% Subfunctions: none
% MAT-files required: none
%
% See also: interval, polytope
% See also:

% Author: Amr Alanwar
% Written: 11-Aug-2020
% Last update: ---
% Last revision: ---

%------------- BEGIN CODE --------------
% [dim,numOfPoints] = size(points);
% cen = [];
% newpoints = [];
% for i = 1:numOfPoints
% if zeros(dim,1) ==points(:,i)
% cen =zeros(dim,1);
% else
% newpoints= [newpoints points(:,i)];
% end
% end
% newpoints=unique(newpoints','rows')';
%
% [row,cols] = size(newpoints);
% for i = 1:cols
% gen{i} = newpoints(:,i);
% end

%points=unique(points','rows')';
% cen =zeros(dim,1);
% gen = {points};
points=unique(points','rows')';
[dim,numOfPoints] = size(points);
cen = points(:,1);
Expand Down
91 changes: 0 additions & 91 deletions @logicalZonotope/enclosePoints2.asv

This file was deleted.

6 changes: 0 additions & 6 deletions @logicalZonotope/isempty.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
% res - result in {0,1}
%
% Example:
% Z1 = zonotope([]);
% Z2 = zonotope([0;0]);
% Z3 = zonotope([1;0],[1 -2 1; 0 1 -2]);
% isempty(Z1); % true
% isempty(Z2); % false
% isempty(Z3); % false
%
% Other m-files required: none
% Subfunctions: none
Expand Down
51 changes: 0 additions & 51 deletions @logicalZonotope/map2D.asv

This file was deleted.

Loading

0 comments on commit 5d97fe6

Please sign in to comment.