-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlcvt03_output.txt
193 lines (142 loc) · 5.28 KB
/
lcvt03_output.txt
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
05 March 2007 10:39:43 AM
LCVT_DATASET
C++ version
Create a "Latinized" CVT datasets.
Compiled on Mar 5 2007 at 09:35:33.
This program is meant to be used interactively.
It is also possible to prepare a simple input
file beforehand and use it in batch mode.
The program requests input values from the user:
* DIM_NUM, the spatial dimension,
* N, the number of points to generate,
* SEED_INIT, a seed to use for random number generation,
* INIT, initialize the points:
** file, read data from a file;
** GRID, by picking points from a grid;
** HALTON, from a Halton sequence;
** RANDOM, using C++ RANDOM function;
** UNIFORM, using a simple uniform RNG;
** USER, call the "user" routine;
* CVT_IT_NUM, the maximum number of CVT iterations.
* SAMPLE, how to conduct the sampling.
** GRID, by picking points from a grid;
** HALTON, from a Halton sequence;
** RANDOM, using C++ RANDOM function;
** UNIFORM, using a simple uniform RNG;
** USER, call the "user" routine;
* SAMPLE_NUM, the number of sample points.
* BATCH, number of sample points to create at one time.
* LAT_IT_NUM, the number of Latinizing iterations.
* OUTPUT, a file in which to store the data.
To indicate that no further computations are
desired, it is enough to input a nonsensical value,
such as -1.
*
*
* Ready to generate a new dataset:
*
*
Enter DIM_NUM, the spatial dimension:
(Try "2" if you do not have a preference.)
(0 or any negative value terminates execution).
User input DIM_NUM = 7
Enter N, the number of points to generate:
(Try "25" if you do not have a preference.)
(0 or any negative value terminates execution).
User input N = 200
Enter SEED_INIT, a seed for the random number generator:
(Try "123456789" if you do not have a preference.)
(Any negative value terminates execution).
User input SEED_INIT = 123456789
INIT is the method of initializing the data:
file read data from a file;
GRID by picking points from a grid;
HALTON from a Halton sequence;
RANDOM using C++ RANDOM function;
UNIFORM using a simple uniform RNG;
USER call the "user" routine;
(Try "RANDOM" if you do not have a preference.)
(A blank value terminates execution).
Enter INIT:
User input INIT = "UNIFORM"
CVT_IT_NUM is the number of CVT iterations.
A CVT iteration carries out the following steps:
* the Voronoi region associated with each
generator is estimated by sampling;
* the centroid of each Voronoi region is estimated.
* the generator is replaced by the centroid.
If "enough" sampling points are used,
and "enough" iterations are taken, this process
will converge
(Try "50" if you do not have a preference.)
(A negative value terminates execution).
Enter CVT_IT_NUM:
User input CVT_IT_NUM = 5
SAMPLE is the method of sampling the region:
GRID by picking points from a grid;
HALTON from a Halton sequence;
RANDOM using C++ RANDOM function;
UNIFORM using a simple uniform RNG;
USER call the "user" routine;
(Try "RANDOM" if you do not have a preference.)
(A blank value terminates execution).
Enter SAMPLE:
User input INIT = "UNIFORM".
SAMPLE_NUM is the number of sample points for CVT.
The Voronoi regions will be explored by generating
SAMPLE_NUM points. For each sample point, the
nearest generator is found. Using more points
gives a better estimate of these regions.
SAMPLE_NUM should be much larger than N, the
number of generators.
(Try "10000" if you do not have a preference.)
(A zero or negative value terminates execution.)
Enter SAMPLE_NUM:
User input SAMPLE_NUM = 20000
BATCH is the number of sample points to create
at one time.
BATCH should be between 1 and SAMPLE_NUM.
It is FASTER to set BATCH to SAMPLE_NUM;
setting BATCH to 1 requires the least memory.
(Try "1000" if you do not have a preference.)
(A zero or negative value terminates execution.)
Enter BATCH:
User input BATCH = 1000
LAT_IT_NUM is the number of Latinizing iterations.
Each step of the latinizing iteration begins
by carrying out CVT_IT_NUM steps of CVT iteration,
after which the data is "latinized".
Often, one latinizing step is enough.
In some cases, it may be worth while to carry
out several latinizing steps; that is, the
Latinized data is smoothed by another series
of CVT steps, then latinized, and so on.
(Try "1" if you do not have a preference.)
(A negative value terminates execution).
Enter LAT_IT_NUM:
User input LAT_IT_NUM = 2
OUTPUT is the name of a file into which
the computed data may be stored.
(Try "lcvt.txt" if you do not have a preference.)
(A blank value terminates execution).
Enter OUTPUT:
User input OUTPUT = "lcvt03.txt".
Latin IT CVT Energy Latin Energy
CVT IT Change
1 2.20519
2 1.0894
3 0.830001
4 0.713894
5 0.69984
1 0.134008 0.154981
CVT IT Change
1 1.84472
2 0.783902
3 0.693003
4 0.624975
5 0.606341
2 0.133339 0.15402
The data was written to the file "lcvt03.txt".
LCVT_DATASET:
Normal end of execution.
05 March 2007 10:41:03 AM