--- myst: substitutions: sentence: "It is performed in the `computeCorrelationMatrix` method." bloc: python: 3-9 cpp: 3,6-11 bloc2: python: 11-13 cpp: 13-15 --- ```{include} /../core/dataserver/statistics/correlation_matrix.md ``` {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/statistics/" + language + "/compute_correlation_matrix." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc[language] + "\n" + "```" }} ```none Computing correlation matrix ... 2x2 matrix is as follows | 0 | 1 | ------------------------------- 0 | 1 0.9008 1 | 0.9008 1 ``` Same thing if computing the correlation matrix on ranks: {{ "```{literalinclude} " + parent_dir + "/roottest/uranie/doc/dataserver/statistics/" + language + "/compute_correlation_matrix." + extension + "\n" + ":language: " + language + "\n" + ":lines: " + bloc2[language] + "\n" + "```" }} ```none Computing correlation matrix on ranks ... 2x2 matrix is as follows | 0 | 1 | ------------------------------- 0 | 1 0.7778 1 | 0.7778 1 ``` ```{toctree} correlation_matrix/case_vector ``` ````{admonition} Summary: Correlation matrix - `computeCorrelationMatrix` (__const char\*__ varexp="", __const char\*__ select="", __Option_t\*__ option="" ) Compute the correlation matrix on the attributes given by *varexp* applying the filter contained in *select*. When the parameter *varexp* is empty, the correlation matrix is calculated on all the attributes in the {{tds}}. The filter *select* is added to the [permanent selection](#dataserver_data_pattern_selection) of the {{tds}}. By default, when the *option* is empty, the correlation matrix was calculated on the values (**Pearson matrix**). ```{tip} The possible values of the argument *option* are: **rank** : the correlation was calculated on the ranks (**Spearmann matrix**). ``` ````