uniform_xy¶
- artpop.space.uniform_xy(num_stars, xy_dim, random_state=None)[source]¶
Sample xy positions from a uniform distribution.
- Parameters
- num_starsint
Number of stars (i.e., positions) to sample.
- xy_dimint or list-like
Dimensions of the mock image in xy coordinates. If int is given, will make the x and y dimensions the same.
- random_state
None
, int, list of ints, orRandomState
If
None
, return theRandomState
singleton used bynumpy.random
. Ifint
, return a newRandomState
instance seeded with theint
. IfRandomState
, return it. Otherwise raiseValueError
.
- Returns
- xy
array
xy pixel positions.
- xy