comparison toolboxes/FullBNT-1.0.7/nethelp3.3/datread.htm @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 <html>
2 <head>
3 <title>
4 Netlab Reference Manual datread
5 </title>
6 </head>
7 <body>
8 <H1> datread
9 </H1>
10 <h2>
11 Purpose
12 </h2>
13 Read data from an ascii file.
14
15 <p><h2>
16 Synopsis
17 </h2>
18 <PRE>
19 [x, t, nin, nout, ndata] = datread(filename)
20 </PRE>
21
22
23 <p><h2>
24 Description
25 </h2>
26
27 <p><CODE>[x, t, nin, nout, ndata] = datread(filename)</CODE> reads from
28 the file <CODE>filename</CODE> and returns a matrix <CODE>x</CODE> of input vectors,
29 a matrix <CODE>t</CODE> of target vectors, and integers <CODE>nin</CODE>, <CODE>nout</CODE>
30 and <CODE>ndata</CODE> specifying the number of inputs, the number of outputs
31 and the number of data points respectively.
32
33 <p>The format of the data file is as follows: the first row contains the
34 string <CODE>nin</CODE> followed by the number of inputs, the second row
35 contains the string <CODE>nout</CODE> followed by the number of outputs, and
36 the third row contains the string <CODE>ndata</CODE> followed by the number
37 of data vectors. Subsequent lines each contain one input vector
38 followed by one output vector, with individual values separated by
39 spaces.
40
41 <p><h2>
42 Example
43 </h2>
44 For the XOR data set we have
45
46 <p><h2>
47 See Also
48 </h2>
49 <CODE><a href="nin2nout1ndata40.000000e+000.000000e+001.000000e+000.000000e+001.000000e+000.000000e+001.000000e+000.000000e+000.000000e+001.000000e+001.000000e+001.000000e+00SeeAlsodatwrite.htm">nin2nout1ndata40.000000e+000.000000e+001.000000e+000.000000e+001.000000e+000.000000e+001.000000e+000.000000e+000.000000e+001.000000e+001.000000e+001.000000e+00SeeAlsodatwrite</a></CODE><hr>
50 <b>Pages:</b>
51 <a href="index.htm">Index</a>
52 <hr>
53 <p>Copyright (c) Ian T Nabney (1996-9)
54
55
56 </body>
57 </html>