Mercurial > hg > camir-aes2014
annotate toolboxes/FullBNT-1.0.7/nethelp3.3/datwrite.htm @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 <html> |
wolffd@0 | 2 <head> |
wolffd@0 | 3 <title> |
wolffd@0 | 4 Netlab Reference Manual datwrite |
wolffd@0 | 5 </title> |
wolffd@0 | 6 </head> |
wolffd@0 | 7 <body> |
wolffd@0 | 8 <H1> datwrite |
wolffd@0 | 9 </H1> |
wolffd@0 | 10 <h2> |
wolffd@0 | 11 Purpose |
wolffd@0 | 12 </h2> |
wolffd@0 | 13 Write data to ascii file. |
wolffd@0 | 14 |
wolffd@0 | 15 <p><h2> |
wolffd@0 | 16 Synopsis |
wolffd@0 | 17 </h2> |
wolffd@0 | 18 <PRE> |
wolffd@0 | 19 datwrite(filename, x, t) |
wolffd@0 | 20 </PRE> |
wolffd@0 | 21 |
wolffd@0 | 22 |
wolffd@0 | 23 <p><h2> |
wolffd@0 | 24 Description |
wolffd@0 | 25 </h2> |
wolffd@0 | 26 |
wolffd@0 | 27 <p><CODE>datwrite(filename, x, t)</CODE> takes a matrix <CODE>x</CODE> of input vectors |
wolffd@0 | 28 and a matrix <CODE>t</CODE> of target vectors and writes them to an ascii |
wolffd@0 | 29 file named <CODE>filename</CODE>. The file format is as follows: the first |
wolffd@0 | 30 row contains the string <CODE>nin</CODE> followed by the number of inputs, |
wolffd@0 | 31 the second row contains the string <CODE>nout</CODE> followed by the number |
wolffd@0 | 32 of outputs, and the third row contains the string <CODE>ndata</CODE> followed |
wolffd@0 | 33 by the number of data vectors. Subsequent lines each contain one input |
wolffd@0 | 34 vector followed by one output vector, with individual values separated |
wolffd@0 | 35 by spaces. |
wolffd@0 | 36 |
wolffd@0 | 37 <p><h2> |
wolffd@0 | 38 Example |
wolffd@0 | 39 </h2> |
wolffd@0 | 40 For the XOR data set we have |
wolffd@0 | 41 |
wolffd@0 | 42 <p><PRE> |
wolffd@0 | 43 |
wolffd@0 | 44 nin 2 |
wolffd@0 | 45 nout 1 |
wolffd@0 | 46 ndata 4 |
wolffd@0 | 47 0.000000e+00 0.000000e+00 1.000000e+00 |
wolffd@0 | 48 0.000000e+00 1.000000e+00 0.000000e+00 |
wolffd@0 | 49 1.000000e+00 0.000000e+00 0.000000e+00 |
wolffd@0 | 50 1.000000e+00 1.000000e+00 1.000000e+00 |
wolffd@0 | 51 </PRE> |
wolffd@0 | 52 |
wolffd@0 | 53 |
wolffd@0 | 54 <p><h2> |
wolffd@0 | 55 See Also |
wolffd@0 | 56 </h2> |
wolffd@0 | 57 <CODE><a href="datread.htm">datread</a></CODE><hr> |
wolffd@0 | 58 <b>Pages:</b> |
wolffd@0 | 59 <a href="index.htm">Index</a> |
wolffd@0 | 60 <hr> |
wolffd@0 | 61 <p>Copyright (c) Ian T Nabney (1996-9) |
wolffd@0 | 62 |
wolffd@0 | 63 |
wolffd@0 | 64 </body> |
wolffd@0 | 65 </html> |