Home > TNNT_1_07 > Datasets > Regression > Cosine_data_gen.m

Cosine_data_gen

PURPOSE ^

Cosine Data Generation

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

Cosine Data Generation

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %Cosine 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 
0008 EncodeMethod='Linear';
0009 DecodeMethod='Linear';
0010 InputSpikeRange=[2 8];
0011 OutputSpikeRange=[16 28];
0012 InputRange=[0 2*pi];
0013 OutputRange=[-1 1];
0014 Inputs=2*pi*rand(60,1);
0015 Outputs=cos(Inputs);
0016 TestFlag=1;
0017 TestingInputs=2*pi*rand(10,1);
0018 TestingOutputs=cos(TestingInputs);
0019 FH=@cos;
0020 
0021 save('Cosine');
0022 
0023 InputRange=[0 4*pi];
0024 OutputRange=[-1 1];
0025 Inputs=4*pi*rand(60,1);
0026 Outputs=cos(Inputs);
0027 TestFlag=1;
0028 TestingInputs=2*pi*rand(10,1);
0029 TestingOutputs=cos(TestingInputs);
0030 
0031 save('Cosine2Periods');

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