This Page

galpy.df.Edf.sample

Edf.sample(pot, n=1)
NAME:
sample
PURPOSE:
sample from this df
INPUT:
pot - potential n - number of samples desired
OUTPUT:
depending on the dimension, list of [linearOrbit,planarOrbit,Orbit]s or a single orbit if n=1
HISTORY:
2010-07-12 - Written - Bovy (NYU)
BUGS:
sampling is bad and inaccurate at large x