Is phasecurvefit right for my data?#
phasecurvefit fits when three things hold. You have many samples. Each sample has a position and a velocity, given as dictionaries of arrays with the same keys. And the samples lie along one curve whose order you don’t know. The tables below match what you have and what you want to the call to use and the page to read.
What you have#
You have |
Use |
Read more |
|---|---|---|
positions and velocities along a curve, and no known start point |
|
|
a known start point, such as a stream’s progenitor |
|
Use the local-flow walk, Learning a Stream with an Autoencoder |
a curve that crosses itself |
once: the default pipeline, whose MST weighs edges by velocity and crosses straight over. Many times: |
Choose an orderer, Learning an Epitrochoid with an Autoencoder, Ordering a Self-Intersecting Epitrochoid with the MST Backbone |
samples with some missing velocities (NaN) |
the default pipeline, which joins a sample with a missing velocity by position alone and skips it when orienting the ordering |
|
|
any orderer, with |
|
a dataset where background points mix with the curve |
an MST with |
Reject outliers with the mixture model, Outlier rejection with mixture-model membership |
an ordering to run inside |
any orderer, the default pipeline included, except the ones that run on the host: |
What you want#
You want |
phasecurvefit gives |
Read more |
|---|---|---|
the order of the samples along the curve |
|
|
an ordering coordinate \(\gamma\) for every sample |
|
|
a smooth mean track \(x(\gamma)\) |
calling the fitted result, |
Fill gaps and fit a track with the autoencoder, Interpolate positions along an ordering |
a track fast enough for every step of an MCMC |
|
|
a probability that each sample belongs to the curve |
|
|
positions at given values of \(\gamma\) from an ordering alone |
calling the ordering result, |
What phasecurvefit does not do#
Each call orders one curve. The default pipeline joins disconnected pieces into one ordering, so separate distinct streams in a catalogue before you order them.
It does not model the dynamics. The track is a smooth curve through the data in phase space, and phasecurvefit fits no orbit, potential or progenitor.
The local-flow walk does not choose its own start point. Chaining an
MSTOrdererin front of it supplies an end of the curve (Chain orderers).