code: def sim_combi(self):
          
          n_samples = 500
          sigma_glob = 1.8
  
          X = np.zeros((n_samples,3))
  
          X[:,0] = np.random.uniform(-sigma_glob,sigma_glob,n_samples)
          X[:,1] = np.random.uniform(-sigma_glob,sigma_glob,n_samples)
  
          func = self.funcs['tanh']
  
          # XOR type
  #         X[:,2] = (func(X[:,0])*sp.stats.norm.pdf(X[:,1],0,0.2)
  #                   + func(X[:,1])*sp.stats.norm.pdf(X[:,0],0,0.2))
          # AND type / diagonal
  #         X[:,2] = (func(X[:,0]+X[:,1])*sp.stats.norm.pdf(X[:,1]-X[:,0],0,0.2))
          # AND type / horizontal
          X[:,2] = (func(X[:,0])*sp.stats.norm.cdf(X[:,1],1,0.2))
  
          pl.scatter(X[:,0],X[:,1],c=X[:,2],edgecolor='face')
          pl.show()
  
          pl.plot(X[:,1],X[:,2],'.')
          pl.show()
  
          return X
docs: Simulate data to model combi regulation.