53      int dim = 
X.GetNrows();
 
   55      for (
int i = 0; i<dim; ++i) { 
X[i] = 
x[i] - 
p[k]; k++; }
 
   56      for (
int i = 0; i<dim; ++i) {
 
   60      for (
int i = 0; i<dim; ++i) {
 
   61         for (
int j = i+1; 
j<dim; ++
j) {
 
   75         Fatal(
"GausND",
"Determinant is <= 0 det = %f",
det);
 
   85         std::cout << 
"det  " << 
det << std::endl;
 
   86         std::cout << 
"norm " << 
norm << std::endl;
 
   87         std::cout << 
"fval " << 
fval << std::endl;
 
  104   double xmin[] = {-10,-10,-10, -10};
 
  105   double xmax[] = { 10, 10, 10,  10};
 
  106   double par0[] = { 1., -1., 2, 0, 
 
  108                     0.5,0.,0.,0.,0.,0.8 };  
 
  114   f->SetParameters(
par0);
 
  116   double x0[] = {0,0,0,0};
 
  118   if (
debug) 
f->EvalPar(x0,
nullptr);
 
  122   for (
int i = 0; i < 
NPAR; ++i )  {
 
  123      if (i < 
DIM) 
f->SetParName(i, 
name.Format(
"mu_%d",i+1) );
 
  124      else if (i < 2*
DIM) 
f->SetParName(i, 
name.Format(
"sig_%d",i-
DIM+1) );
 
  125      else if (i < 2*
DIM) 
f->SetParName(i, 
name.Format(
"sig_%d",i-2*
DIM+1) );
 
  131      Info(
"multidimSampling",
"Default sampler %s is not available try with Foam ",
 
  135   sampler = Factory::CreateDistSampler();
 
  137      Error(
"multidimSampling",
"Foam sampler is not available - exit ");
 
  150      Error(
"Sampler::Init",
"Error initializing unuran sampler");
 
  156   for (
int i = 0; i < 
N; ++i) {
 
  158      for (
int j = 0; 
j < 
DIM; ++
j)
 
  165   TFile * file = 
new TFile(
"multiDimSampling.root",
"RECREATE");
 
  168   t1->Branch(
"x",
x,
"x[4]/D");
 
  169   for (
int i = 0; i < 
N; ++i) {
 
  170      for (
int j = 0; 
j < 
DIM; ++
j) {
 
  177   t1->Draw(
"x[0]:x[1]:x[2]:x[3]",
"",
"candle");
 
  182   t1->Draw(
"x[0]:x[1]");
 
  184   t1->Draw(
"x[0]:x[2]");
 
  186   t1->Draw(
"x[0]:x[3]");
 
  188   t1->Draw(
"x[1]:x[2]");
 
  190   t1->Draw(
"x[1]:x[3]");
 
  192   t1->Draw(
"x[2]:x[3]");
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
 
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
TRObject operator()(const T1 &t1) const
 
static void SetDefaultSampler(const char *type)
 
static const std::string & DefaultSampler()
 
Interface class for generic sampling of a distribution, i.e.
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
void Close(Option_t *option="") override
Close a file.
 
A TTree represents a columnar dataset.