Hi Guillaume, I am not aware of any problems with the fitting routines in JAS, they all compile for me. Can you send some more details about which version of JAS, you are using, which platform you are running on etc.
Also if you repost your question to http://forum.freehep.org/ it will reach a wider audience, and will be easier for a fitting expert to review.
Tony
> -----Original Message-----
> From: [log in to unmask]
> [mailto:[log in to unmask]] On Behalf Of
> Guillaume BELANGER
> Sent: Wednesday, March 09, 2005 12:34 AM
> To: lcd-dev
> Subject: Problem with Example3.java
>
> 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
>
>
|