Open jeanluct opened 9 years ago
Started implementing this on iss126-braid-from-ODE
branch.
Some more thoughts about this:
XY
array, then pass it to colobraiding
? Or better, it could generate the crosscell
object and pass it to the private function sortcross2gen
.crosscell
. Otherwise we get an XY
array. My feeling is that pairwise scales better. In fact I think that's what we'd found when MDF first developed the pairwise crossing method.Continued to implement this. 2d721e4 is a reasonable prototype. It surprisingly slow, however, compared to equally-spaced sampling. Maybe that's a feature of the simple flow I'm using.
(Spinoff of #124.)
Have the braid constructor take a function handle as an argument, which could then be used to call
ode45
and generate the braid.Example:
Syntax is meant to mimic
ode45
. Could even pass optionalode45
options at the end. The RHS function@func
only takes one trajectory at a time, andXY0
is a set ofn
initial conditions. (XY0
should have dimension[2 n]
, to agree with theXY
constructor.)An implementation might involve going through by pairs of strings, and setting and
@events
function for when thex
coordinates coincide.