Home > TNNT_1_07 > Datasets > Regression > Sexton5_data_gen.m

Sexton5_data_gen

PURPOSE ^

Sexton 5 Data Generation

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

Sexton 5 Data Generation

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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');

Generated on Wed 02-Apr-2008 15:16:32 by m2html © 2003