ó
\c           @   s.   d  Z  d d l Z d d d d d d  Z d S(	   s+   
Common utilities for testing clustering.

i˙˙˙˙Ni    i   i   i   gŮ?c   	      C   sŔ   t  j j |   } t  j d d d d g d d d d g d d d d g d d d d g g  d } t  j d | f  } xC t |  D]5 } t  j | | | |  | | j | |  f } q W| S(   Ni   i    i˙˙˙˙i
   (   t   npt   randomt   RandomStatet   arrayt   emptyt   ranget   r_t   randn(	   t   seedt
   n_clusterst
   n_featurest   n_samples_per_clustert   stdt   prngt   meanst   Xt   i(    (    s;   lib/python2.7/site-packages/sklearn/cluster/tests/common.pyt   generate_clustered_data   s    (   t   __doc__t   numpyR    R   (    (    (    s;   lib/python2.7/site-packages/sklearn/cluster/tests/common.pyt   <module>   s   	