about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/nethelp3.3/datwrite.htm
blob: 1006b911aab9f8561e93dcc5b8ecee767417bc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<html>
<head>
<title>
Netlab Reference Manual datwrite
</title>
</head>
<body>
<H1> datwrite
</H1>
<h2>
Purpose
</h2>
Write data to ascii file.

<p><h2>
Synopsis
</h2>
<PRE>
datwrite(filename, x, t)
</PRE>


<p><h2>
Description
</h2>

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

<p><h2>
Example
</h2>
For the XOR data set we have

<p><PRE>

 	nin   2
 	nout  1
 	ndata 4
 	0.000000e+00  0.000000e+00  1.000000e+00 
 	0.000000e+00  1.000000e+00  0.000000e+00 
 	1.000000e+00  0.000000e+00  0.000000e+00 
 	1.000000e+00  1.000000e+00  1.000000e+00 
</PRE>


<p><h2>
See Also
</h2>
<CODE><a href="datread.htm">datread</a></CODE><hr>
<b>Pages:</b>
<a href="index.htm">Index</a>
<hr>
<p>Copyright (c) Ian T Nabney (1996-9)


</body>
</html>