本文整理汇总了C++中Experiment::Minima方法的典型用法代码示例。如果您正苦于以下问题:C++ Experiment::Minima方法的具体用法?C++ Experiment::Minima怎么用?C++ Experiment::Minima使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Experiment
的用法示例。
在下文中一共展示了Experiment::Minima方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main() {
cout << "Computational Exercise 4.2a)\n\nDouble Slit\n" << endl;
DoubleSlit *slit = new DoubleSlit(62,272);
cout << "Slit has width = " << slit->Width() << " nm and Distance = " << slit->Distance() << " nm" << endl;
Electron *elec = new Electron(300);
cout << "The Electron has a lambda of " << elec->Lambda() << endl;
// Idee: Electron erzeugen
// Winkel zuordnen nach Wahrscheinlichkeitsverteilung
// Seeding
srand(time(NULL));
Experiment *expe = new Experiment(*elec,*slit);
cout << "\nDie Minima der Intensität liegen bei: " << expe->Minima() << endl;
expe->printEx(10000);
cout << "\n *** Starte Experiment mit normalverteilter Spannung ***" << endl;
// SecondExperiment(DoubleSlit slit, unsigned int numberOfElec,unsigned int numberOfBins, double U,double deltaU,
SecondExperiment *expe2 = new SecondExperiment(*slit,10000,200,300.,10.);
expe2->printExp();
expe2->printNormv();
cout << "\n +++ Finished! +++" << endl;
delete expe;
delete elec;
delete slit;
return 0;
}