30 void generate_random(
Int_t i) {
33 r2 = (2*dr*r->
Rndm(i))-dr;
34 r3 = (2*dr*r->
Rndm(i))-dr;
35 r5 = (2*dr*r->
Rndm(i))-dr;
36 r6 = (2*dr*r->
Rndm(i))-dr;
37 r8 = (2*dr*r->
Rndm(i))-dr;
40 void parallelcoordtrans() {
53 for (
Int_t i=0; i<1500; i++) {
54 r->
Sphere(s1x, s1y, s1z, 0.1);
55 r->
Sphere(s2x, s2y, s2z, 0.2);
56 r->
Sphere(s3x, s3y, s3z, 0.05);
59 nt->
Fill(r1, r2, r3, r4, r5, r6, r7, r8, r9);
63 nt->
Fill(s1x, s1y, s1z, s2x, s2y, s2z, r7, r8, r9);
67 nt->
Fill(r1, r2, r3, r4, r5, r6, r7, s3y, r9);
71 nt->
Fill(s2x-1, s2y-1, s2z, s1x+.5, s1y+.5, s1z+.5, r7, r8, r9);
75 nt->
Fill(r1, r2, r3, r4, r5, r6, r7, r8, r9);
79 nt->
Fill(s1x+1, s1y+1, s1z+1, s3x-2, s3y-2, s3z-2, r7, r8, r9);
83 nt->
Fill(r1, r2, r3, r4, r5, r6, s3x, r8, s3z );
92 nt->
Draw(
"x:y:z:u:v:w:a:b:c",
"",
"para");
109 nt->
Draw(
"x:y:z:u:v:w:a:b:c",
"",
"para");
123 c1->
Print(
"parallelcoordtrans.pdf");
124 c1->
Print(
"parallelcoordtrans.svg");
127 c1->
Print(
"parallelcoordtrans.gif");
128 c1->
Print(
"parallelcoordtrans.jpg");
129 c1->
Print(
"parallelcoordtrans.png");
virtual void SetAlpha(Float_t a)
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
void SetLineColor(Color_t col)
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
This is the base class for the ROOT Random number generators.
virtual Double_t Rndm()
Machine independent random number generator.
A simple TTree restricted to a list of float variables only.
virtual void Print(const char *filename="") const
Save Pad contents in a file in one of various formats.
void SetHistogramHeight(Double_t h=0)
Set the height of the bar histogram.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
virtual Int_t Fill()
Fill a Ntuple with current values in fArgs.
The color creation and management class.
virtual void Sphere(Double_t &x, Double_t &y, Double_t &z, Double_t r)
Generates random vectors, uniformly distributed over the surface of a sphere of given radius...
Parallel Coordinates class.
you should not use this method at all Int_t Int_t z
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b