|Message: Re: FW: AIDA histogram analysis problem||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
It seems my case is a little complicated... I have the two histograms: hist1 and hist2, and need to get the ratio hist1/hist2. However, some part of hist2 is zero, so if I follow the method you mentioned below, I will get infinity in the resulted new histogram. What I want to do is just set those parts zero, and the other still the ratio of the two histograms. How to deal with this problem?
> Hi, I need to analyze the data got in simulation. Now I have > two histograms, both are AIDA::IHistogram1D*, with the same > x-axis range and bin number. I want to get the ratio of the > two datasets along x-axis, how to do it?
Hi, use the method,
AIDA::IHistogramFactory.divide(String name, IHistogram1D hist1,IHistogram1D hist2)
Where name is the name of the new histogram, and hist1 and hist2 are the existing histograms to be divded. E.g.
IHistogram1D* newHist = hf->divide("newHistName",hist1,hist2);
Where hf is a pointer to your AIDA::IHistogramFactory.
|Inline Depth:||Outline Depth:||Add message:|