wolffd@0: wolffd@0: wolffd@0: wolffd@0: Netlab Reference Manual datwrite wolffd@0: wolffd@0: wolffd@0: wolffd@0:

datwrite wolffd@0:

wolffd@0:

wolffd@0: Purpose wolffd@0:

wolffd@0: Write data to ascii file. wolffd@0: wolffd@0:

wolffd@0: Synopsis wolffd@0:

wolffd@0:
wolffd@0: datwrite(filename, x, t)
wolffd@0: 
wolffd@0: wolffd@0: wolffd@0:

wolffd@0: Description wolffd@0:

wolffd@0: wolffd@0:

datwrite(filename, x, t) takes a matrix x of input vectors wolffd@0: and a matrix t of target vectors and writes them to an ascii wolffd@0: file named filename. The file format is as follows: the first wolffd@0: row contains the string nin followed by the number of inputs, wolffd@0: the second row contains the string nout followed by the number wolffd@0: of outputs, and the third row contains the string ndata followed wolffd@0: by the number of data vectors. Subsequent lines each contain one input wolffd@0: vector followed by one output vector, with individual values separated wolffd@0: by spaces. wolffd@0: wolffd@0:

wolffd@0: Example wolffd@0:

wolffd@0: For the XOR data set we have wolffd@0: wolffd@0:

wolffd@0: 
wolffd@0:  	nin   2
wolffd@0:  	nout  1
wolffd@0:  	ndata 4
wolffd@0:  	0.000000e+00  0.000000e+00  1.000000e+00 
wolffd@0:  	0.000000e+00  1.000000e+00  0.000000e+00 
wolffd@0:  	1.000000e+00  0.000000e+00  0.000000e+00 
wolffd@0:  	1.000000e+00  1.000000e+00  1.000000e+00 
wolffd@0: 
wolffd@0: wolffd@0: wolffd@0:

wolffd@0: See Also wolffd@0:

wolffd@0: datread
wolffd@0: Pages: wolffd@0: Index wolffd@0:
wolffd@0:

Copyright (c) Ian T Nabney (1996-9) wolffd@0: wolffd@0: wolffd@0: wolffd@0: