Skip to content

Commit

Permalink
Merge pull request #66 from fastalgorithms/issue65-balance
Browse files Browse the repository at this point in the history
closes #65
  • Loading branch information
mrachh authored Apr 1, 2024
2 parents 8754eef + dda82fe commit c913a16
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions chunkie/@chunkgraph/balance.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
parcl = zeros([numel(vedge),1]);
pinds = zeros([numel(vedge),1]);

[~,wleg16,~,~] = lege.exps(16);
for ii=1:numel(vedge)
if (sign(vsign(ii)) == -1)
ds = obj.echnks(vedge(ii)).d(:,:,1);
Expand All @@ -51,11 +50,8 @@

h = obj.echnks(vedge(ii)).h(pinds(ii));
k = obj.echnks(vedge(ii)).k;
if (k ~=16)
[~,wleg,~,~] = lege.exps(k);
else
wleg = wleg16;
end

wleg = echnks(vedge(ii)).wstor;

arc = sum(sqrt(ds(1,:).^2+ds(2,:).^2).*wleg'*h);
parcl(ii) = arc;
Expand Down

0 comments on commit c913a16

Please sign in to comment.