Hi,
I am just starting to look at using JAS and JAIDA to write some fitting
routines and I am going through the examples from the fitting tutorial. I
complied and ran Example1 and Example2 but cannot get Example3 and up to
compile. The error seems to suggest that it has something to do with
IHistogram1D. Here is the output of javac.
Can you tell me what is wrong?
Thanks,
Guillaume
Example 3
belanger@local>javac -d ./ Example3.java
Example3.java:33: cannot resolve symbol
symbol : method plot (hep.aida.IHistogram1D)
location: interface hep.aida.IPlotterRegion
plotter.region(0).plot(hist);
^
1 error
Example 4
belanger@local>javac -d ./ Example4.java
Example4.java:34: cannot resolve symbol
symbol : method axis ()
location: interface hep.aida.IHistogram1D
gaussSum.setParameter("N",
(hist.axis().upperEdge()-hist.axis().lowerEdge())*hist.entries()/hist.axis().bins());
^
Example4.java:34: cannot resolve symbol
symbol : method axis ()
location: interface hep.aida.IHistogram1D
gaussSum.setParameter("N",
(hist.axis().upperEdge()-hist.axis().lowerEdge())*hist.entries()/hist.axis().bins());
^
Example4.java:34: cannot resolve symbol
symbol : method axis ()
location: interface hep.aida.IHistogram1D
gaussSum.setParameter("N",
(hist.axis().upperEdge()-hist.axis().lowerEdge())*hist.entries()/hist.axis().bins());
^
Example4.java:43: cannot resolve symbol
symbol : method fit (hep.aida.IHistogram1D,hep.aida.IFunction)
location: interface hep.aida.IFitter
IFitResult gaussSumResult = fitter.fit(hist,gaussSum);
^
Example4.java:48: cannot resolve symbol
symbol : method plot (hep.aida.IHistogram1D)
location: interface hep.aida.IPlotterRegion
plotter.createRegion(0,0,.66,1).plot(hist);
^
Example4.java:50: cannot resolve symbol
symbol : method plot (hep.aida.IHistogram1D)
location: interface hep.aida.IPlotterRegion
plotter.createRegion(.66,0,.33,.5).plot(hist);
^
Example4.java:52: cannot resolve symbol
symbol : method plot (hep.aida.IHistogram1D)
location: interface hep.aida.IPlotterRegion
plotter.createRegion(.66,.5,.33,.5).plot(hist);
^
7 errors
belanger@local>
Guillaume Belanger
Service d'Astrophysique
CEA - Saclay, Batiment 709
91191 Gif-sur-Yvette cedex, FRANCE
tel: +33 (0)1 69.08.70.62
fax: +33 (0)1 69.08.65.77
|