# poliastro.twobody.sampling¶

## Module Contents¶

### Functions¶

 sample_closed(min_nu, ecc, max_nu=None, num_values=100) Sample a closed orbit
poliastro.twobody.sampling.sample_closed(min_nu, ecc, max_nu=None, num_values=100)

Sample a closed orbit

If max_nu is given, the sampling interval will go from the minimum to the maximum true anomaly in the direction of the orbit. If not given, it will do a full revolution starting in the minimum true anomaly.

Notes

First sample the eccentric anomaly uniformly, then transform into true anomaly to minimize error in the apocenter, see https://apps.dtic.mil/dtic/tr/fulltext/u2/a605040.pdf