18 const int baseline = 1000;
20 const int period = 10;
24 for (
int ind=0; ind<
nticks; ++ind) {
25 wf1[ind] = baseline + ind%period;
28 transform(wf1.begin(), wf1.end(), wf2.begin(),
29 [](
int x)->
int{
return x - baseline;});
31 for (
int ind=0; ind<
nticks; ++ind) {
32 Assert(wf1[ind]-baseline == wf2[ind]);
43 cerr <<
us.first <<
" +/- " <<
us.second <<
" med=" <<
m <<
endl;
50 const int nbins = 360;
51 for (
int ind=0; ind<
nbins; ++ind) {
52 double phi = ind*3.1415/180.0;
58 for (
int ind=0; ind<
nbins; ++ind) {
62 cerr << s.size() <<
" " << spec.size() <<
endl;
68 Waveform::compseq_t cv{{1.1,2.2},{-3.3,4.4},{0,0},{1,0},{0,1},{-1,0},{0,-1}};
91 compseq_t cv{{1.1,2.2},{-3.3,4.4},{0,0},{1,0},{0,1},{-1,0},{0,-1}};
108 cerr <<
"bye." <<
endl;
internal::named_arg< T, char > arg(string_view name, const T &arg)
tagset_t transform(const tagset_t &ts, const ruleset_t &rs, bool all_rules=true)
QTextStream & endl(QTextStream &s)