#include <iostream>
#include <ctime>
#include <algorithm>
#include <vector>
#include <gsl/gsl_permutation.h>
#include <TRandom2.h>
#include <TMath.h>
#include <TStopwatch.h>
#include <TApplication.h>
#include <TCanvas.h>
#include <TH2F.h>
#include <TGraph.h>
#include <TLegend.h>
#include <TAxis.h>
Go to the source code of this file.
Functions | |
ostream & | operator<< (ostream &os, const vector< Int_t > &v) |
void | initArray (Int_t n, vector< Int_t > &array) |
bool | checkPermute () |
void | permuteTime (const int n, double *tTMath, double *tStd) |
void | testGSLPermute (Int_t n, double *tGSL) |
int | testPermute () |
int | main (int argc, char **argv) |
Variables | |
bool | showGraphics = true |
const int | npass = 2 |
const int | minsize = 5 |
const int | maxsize = 12 |
const int | maxint = 5000 |
const int | arraysize = (maxsize-minsize) + 1 |
bool checkPermute | ( | ) |
Definition at line 49 of file testPermute.cxx.
References copy(), equal(), equals(), initArray(), minsize, n, and TMath::Permute().
Referenced by testPermute().
Definition at line 40 of file testPermute.cxx.
References array, i, maxint, and sort().
Referenced by checkPermute(), and permuteTime().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 207 of file testPermute.cxx.
References TApplication::Run(), showGraphics, and testPermute().
Definition at line 79 of file testPermute.cxx.
References copy(), initArray(), j, npass, TMath::Permute(), and t.
Referenced by testPermute().
Definition at line 109 of file testPermute.cxx.
References GSL_SUCCESS, j, npass, p, and t.
Referenced by testPermute().
int testPermute | ( | ) |
Definition at line 135 of file testPermute.cxx.
References TLegend::AddEntry(), arraysize, c1, checkPermute(), TGraph::Draw(), TH1::Draw(), TLegend::Draw(), equals(), TH1::GetXaxis(), TH1::GetYaxis(), hpx, i, kFALSE, legend, maxsize, minsize, permuteTime(), TAttLine::SetLineColor(), TAttLine::SetLineWidth(), TH1::SetStats(), TNamed::SetTitle(), TGraph::SetTitle(), TCanvas::Show(), showGraphics, and testGSLPermute().
Referenced by main().
Definition at line 25 of file testPermute.cxx.
const int maxint = 5000 |
Definition at line 24 of file testPermute.cxx.
const int maxsize = 12 |
Definition at line 23 of file testPermute.cxx.
const int minsize = 5 |
Definition at line 22 of file testPermute.cxx.
const int npass = 2 |
Definition at line 21 of file testPermute.cxx.
bool showGraphics = true |
Definition at line 19 of file testPermute.cxx.