function [d,a ] =  generate(a)

if( a.seed>0) RandStream.setDefaultStream(RandStream('mcg16807', 'Seed',a.seed));   end;

Z=2*rand(a.n,a.dim)-1;
mu=Z*a.coef;
T = mu+(1/3)*randn(size(mu));



d=data(Z,T);
