Sexton 5 Data Generation
0001 %Sexton 5 Data Generation 0002 0003 clear all; 0004 0005 %To make sure input are different each time this is run 0006 rand('state',sum(100*clock)); 0007 FH=@(x) (x.^3-x.^2); 0008 0009 EncodeMethod='Linear'; 0010 DecodeMethod='Linear'; 0011 InputSpikeRange=[2 6]; 0012 OutputSpikeRange=[20 28]; 0013 InputRange=[-100 100]; 0014 OutputRange=FH(InputRange); %OK since is monotonically increasing 0015 Inputs=200*rand(60,1)-100; 0016 Outputs=FH(Inputs); 0017 TestFlag=1; 0018 TestingInputs=200*rand(10,1)-100; 0019 TestingOutputs=FH(TestingInputs); 0020 0021 save('Sexton5');