--- myst: substitutions: sentence: "The {{tds}} provides" bloc: python: 1-4,11-19 cpp: 4,7-13 console: python: "7" cpp: "9" --- ```{include} /../core/dataserver/statistics/computing_elementary.md ``` It can be simply called without argument (running then over all the attributes), or with a restricted list of attributes. A second possible argument is a selection criteria (which is not applied through the `setSelect` method so not changing the behaviour of the {{tds}} in the other method). {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/use_cases/" + language + "/dataserverGeyserStat." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc[language] + "\n" + "```" }} It returns the following line {{ "```{literalinclude} " + parent_dir + "/roottest/build/uranie/doc/dataserver/use_cases/" + language + "/dataserverGeyserStat.log\n" + ":language: none\n" + ":lines: " + console[language] + "\n" + "```" }} ```{toctree} computing_elementary/case_vector ``` ```{admonition} Summary: computeStatistic - `computeStatistic`(__const char\*__ varexp = "\*", __const char\*__ selection = "", __Option_t\*__ option = "") Estimate Mean, Std, Maximum and Minimum for attributes requested in varexp, with an optional additional selection. If no argument is provided, a loop over all attributes is performed. - `getMean(intiel=0)`, `getStd(intiel=0)`, `getMinimum(intiel=0)`, `getMaximum(intiel=0)` Method from `TAttribute` class, made to give access to the computed statistic information. The argument is the element number in the corresponding vector, the default being one. The size of the vector is larger than the original vector because of the statistic computation is also performed on all elements at once. The size of this vector is provided by these functions: - `getMeanSize()`, `getStdSize()`, `getMinimumSize()`, `getMaximumSize()` Method from `TAttribute` class, providing access to the size of the statistical-vectors. - The statistical vectors are cleared as soon as the overall selection is modified. ```