
function a = example_reg(hyper) 

%====================================================================
% EXAMPLE_WEIBULL_MULTI a censoring example data generation object.
%                 The covariates z are generated uniformly on the segment [-1,1]^10. 
%                 The failure time follows the Weibull distribution.
%                 The censoring variable is distributed uniformly
%==================================================================== 
%
% Methods:
%  generate,train,test

   a.n=500;
  a.seed=-1;
  
  a.dim=15;%dimensions of the set
  a.corrdim=5;
  a.coef=[ones(a.corrdim,1);zeros(a.dim-a.corrdim,1)];
  
  %risk parameters
  
  p=algorithm('example_reg');
  a= class(a,'example_reg',p);

  if nargin==1
    eval_hyper;
  end  
