Linked Questions
14 questions linked to/from FindCurvePath for lines (rather than points)
18
votes
3
answers
1k
views
How to find the outline of a country given the imperfect outlines of its administrative subdivisions?
I have a larger outline divided into several regions. While my data represents something else, let us think of this as the provinces/counties of a country, for the sake of simplicity. This is, for ...
16
votes
3
answers
2k
views
House of Santa Claus
The house of Santa Claus is an old German drawing game for small children.
You have to draw a house in one line.
You must not lift your pencil while drawing. $\color{red}{\text{You must not repeat a ...
14
votes
4
answers
1k
views
ListPlot join points by nearest neighbor rather than order
I have found some software that allows me to "data mine" the values from publication figures. I have a bunch of contours from papers that I've mined using this software, and am having some trouble ...
8
votes
3
answers
1k
views
Get all pairs of same consecutive characters from string?
Consider a string like:
str = "AabHHioPjggtYuggbwq";
I would like to have a function getpairs[x_String] that would extract ...
9
votes
3
answers
3k
views
Postfix with two arguments
This must be a duplicate but I can't find any related post.
I want to pass two arguments to a function using postfix syntax like
f[a_,b_]:=a+b;
1,2//f
More ...
9
votes
3
answers
589
views
How do I "read out" the vertex names on this graph?
While working to self-answer FindCurvePath for lines (rather than points) using Graph functions I came upon a seemingly silly conundrum: how do I programmatically ...
12
votes
2
answers
520
views
Rescaling data to make a "continuous" function
I have acquired many sets of data, which all represent a single function, but which are randomly rescaled by a constant (due to the measurement specifics). I'm looking to effectively stitch them ...
5
votes
2
answers
716
views
How to make a disconnected graph to be 1-edge-connected(but not 2-edge-connected) with some shortest edge
Assume I have a graph.You can run following code to get it.
...
5
votes
1
answer
854
views
How to rapidly find the nearest pairs of points in different clusters
Background
For speed up this question or this question,I have such need.
Current try:
Suppose I have $3$ clusters of points:
...
4
votes
1
answer
224
views
Custom interpolation algorithm
Suppose I have a list to create a list density plot, the list format is:
list = {{0.5, 0.5, 0.0}, {-0.5, 0.5, 1.0}, {1.0, -0.45, 0.0}, {0.0, 0.0, 0.0}}
The size ...
9
votes
1
answer
229
views
How to sort lines into continous paths efficiently
As part of my work I get a bunch of lines from my co-worker. (Background: I do electromagnetic designs, my co-worker does the mechanical design). These lines are in random order, but I need them in ...
2
votes
2
answers
317
views
How to connect some separate components with shortest total length line
Maybe this question is too hard. So I try to make a simple version to research.
Simulating a simple graph than that post.
...
3
votes
2
answers
149
views
How to separate and re-order a list of points?
Suppose that we have a list of points. By plotting them we find two curves but the points are in a sequence of first fixing $x$ and then increasing $y$, next fixing $x+dx$ and then increasing $y$ and ...
26
votes
1
answer
654
views
LibraryLink: What can we do with MInputStream and MOutputStream?
Version 9 introduced the WolframStreamsLibrary.h header for LibraryLink. It contains MInputStream and ...