HI everybody,
I would like to interpolate in 2D dimension. I mean given a data set
(x,y,z) i would like to obtein the interpolated values for a new set of
(x,y).
I am trying with interpolate ( class TGraph2D) but I have some
problems. Perhaps there are more options.
The program I have written is below. ( the libraries here are not
include). With this I am trying to reproduce the same intial data but
some of them are equal to cero and others are ok.
here is my program:
void readfort22(void){
// Fill the 2D graph
ifstream in; in.open("fort.22"); Double_t R, R1, M, M1, sigma, nu, ep, e1; TGraph2D *gr = new TGraph2D(); //Fill the 2D Graph for (Int_t i=0;i<100;i++) { in >> R1>> M1 >> sigma >> nu >> ep >> e1;/ if (!in.good()) break;
in.close();
TGraph2D *gr2 = new TGraph2D();
in.open("fort.22");
for (Int_t i=0;i<100;i++){
in >> R1>> M1 >> sigma >> nu >> ep >> e1; ep = gr->Interpolate(R1,M1);
gr2->Draw("surf4");
}
Julia
Disclaimer:
This message and its attached files is intended exclusively for its recipients and may contain confidential information. If you received this e-mail in error you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited and may be unlawful. In this case, please notify us by a reply and delete this email and its contents immediately.
This archive was generated by hypermail 2.2.0 : Thu May 20 2010 - 17:50:01 CEST