42 200.00018816645022000000, 0.00000000000000000000,
43 200.00043034083151000000, 0.00000000000000000000,
44 200.00067251579924000000, 0.00000000000000000000,
45 200.00091469135347000000, 0.00000000000000000000,
46 201.10647068550810000000, 0.00000000000000000000,
47 201.10671554643099000000, 0.00000000000000000000,
48 201.10696040795017000000, 0.00000000000000000000,
49 201.10720527006566000000, 0.00000000000000000000,
50 201.10745013277739000000, 908.68475341796875000000,
51 201.10769499608537000000, 1266.26928710937500000000,
52 201.10793985998967000000, 1258.11450195312500000000,
53 201.10818472449023000000, 848.79339599609375000000,
54 201.10842958958708000000, 0.00000000000000000000,
55 201.10867445528024000000, 0.00000000000000000000,
56 201.10891932156963000000, 0.0000000000000000000,
150 *
os_ <<
"testConfiguration: " << config << endl;
158 if (checkNumpressMaxErrorSupression)
160 binary[1] = numeric_limits<double>::max( )-.1;
161 binary[3] = -binary[1];
162 binary[5] = .5*binary[1];
163 binary[7] = .5*binary[3];
168 *
os_ <<
"original: " << binary.size() << endl;
169 *
os_ << setprecision(20) << fixed;
170 copy(binary.begin(), binary.end(), ostream_iterator<double>(*
os_,
"\n"));
180 encoder.
encode(binary, encoded);
183 *
os_ <<
"encoded: " << encoded.size() << endl << encoded << endl;
192 encoder.
decode(encoded, decoded);
196 *
os_ <<
"decoded: " << decoded.
size() << endl;
197 copy(decoded.
begin(), decoded.
end(), ostream_iterator<double>(*
os_,
"\n"));
206 auto jt = decoded.
begin();
213 for (
auto it = binary.begin(); it!=binary.end(); ++it, ++jt)
215 if (0==*it || 0==*jt)
224 for (
auto it = binary.begin(); it!=binary.end(); ++it, ++jt)
230 if (
os_) *
os_ <<
"validated with epsilon: " << fixed << setprecision(1) << scientific <<
epsilon <<
"\n\n";