本文整理汇总了C++中reference::To::centre方法的典型用法代码示例。如果您正苦于以下问题:C++ To::centre方法的具体用法?C++ To::centre怎么用?C++ To::centre使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类reference::To
的用法示例。
在下文中一共展示了To::centre方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main (int argc, char** argv) try
{
// the multiple component model
ComponentModel model;
string model_filename_in;
string model_filename_out = "paas.m";
string details_filename = "paas.txt";
string std_filename = "paas.std";
bool fit = false;
vector<string> new_components;
string fit_flags;
int bscrunch = 1;
string pgdev;
bool line_plot=false;
bool interactive = false;
bool centre_model = false, rotate_peak=false;
float rotate_amount = 0.0;
bool align = false;
const char* args = "hb:r:w:c:fF:it:d:Dl:j:Ws:CpR:a";
int c;
while ((c = getopt(argc, argv, args)) != -1)
switch (c) {
case 'h':
usage ();
return 0;
case 'r':
model_filename_in = optarg;
break;
case 'w':
model_filename_out = optarg;
break;
case 'f':
fit = true;
break;
case 'W':
model.set_fit_derivative (true);
break;
case 'c':
new_components.push_back(optarg);
break;
case 'F':
fit_flags = optarg;
break;
case 'b':
bscrunch = atoi (optarg);
break;
case 't':
model.set_threshold( atof(optarg) );
break;
case 'd':
pgdev = optarg;
break;
case 'i':
interactive = true;
case 'D':
pgdev = "/xs";
break;
case 'l':
line_plot = true;
break;
case 's':
std_filename = optarg;
break;
case 'C':
centre_model = true;
break;
case 'p':
rotate_peak = true;
break;
case 'R':
rotate_amount = atof(optarg);
break;
case 'a':
align = true;
break;
//.........这里部分代码省略.........