Comments (3)
From Jean-Luc Thiffeault on 2013-01-20 22:41:18+00:00
The bug is not in the projection angle calculation, I'm pretty sure.
Chaging npts makes the bug appear and disappear. The simplest choice is npts=3 (!)
Actually, I think I know what the bug is. Even though we check for coincident particles at first, it's possible that coincidence will arise because of interpolation! Grrr!
from braidlab.
From Jean-Luc Thiffeault on 2013-01-21 04:25:44+00:00
Here's the simplest example I can come up with: 3 strings of 4 points.
#!matlab
npts = 4; r = .75; n = 3; th = linspace(0,2*pi,npts); th = th(end:-1:1);
z = zeros(npts,n);
z(:,1) = 0 + r*exp(1i*(th-pi));
z(:,2) = 1 + r*exp(1i*th);
z(:,3) = .5*ones(size(z(:,1)));
XY = zeros(npts,2,n); XY(:,1,:) = real(z); XY(:,2,:) = imag(z);
% Bug? If we specify a projection angle we sometimes get an error.
b = braid(XY,1)
with output
#!matlab
Error using color_braiding (line 204)
crossdat inconsistency at crossing 1, time 1.585051, index 1, with permutation [1 2 3].
Error in braidlab.braid (line 126)
br = color_braiding(b,1:size(b,1),secnd);
Here's a plot of the braid from the two axes:
It's pretty clear the triple-crossings are creating the problem. The braid is perfectly well-defined (identity braid in this case), but the algorithm gets confused. Not sure yet if the X or Y triple crossing is the problem.
from braidlab.
From Jean-Luc Thiffeault on 2013-01-21 15:33:04+00:00
Resolve issue #3: If the crossing string is not the one on the right,
start looking for a simultaneous crossing. If we find one, then swap
and use that crossing instead.
→ <<cset 7dfcea223346>>
from braidlab.
Related Issues (20)
- Permutation of initial conditions to initial puncture order. HOT 2
- Burau estimate for braid entropy HOT 1
- Length of loop vector HOT 4
- Changed exception ID in Matlab 2016b HOT 1
- Overflow of entropy (again) HOT 3
- databraidTest failure HOT 1
- Size of multiple loop structure HOT 2
- Output handle for loop plot HOT 4
- Document the Garside word class cfbraid
- Extract train track map from Toby's code HOT 5
- Fill interior of loops in loop.plot
- Installation/compilation issue HOT 3
- Compile warnings on macOS (compact_helper in particular) HOT 3
- Document `ttmap` HOT 1
- Add 'pure' option to closure
- Braidlab guide typos / errors HOT 1
- Milnor numbers
- Construct braids from complex array HOT 5
- Consecutive application of train() hangs HOT 3
- Problem with MEX on MaciOS HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braidlab.