plot_interaction_values¶
-
pyapprox.sensitivity_analysis.
plot_interaction_values
(interaction_values, interaction_terms, ax, truncation_pct=0.95, max_slices=5, rv='z', qoi=0)[source]¶ Plot sobol indices in a pie chart showing relative size.
- Parameters
- interaction_valuesnp.ndarray (nvars,nqoi)
The variance based Sobol indices
- interaction_termsnlist (nchoosek(nvars+max_order,nvars))
Indices np.ndarrays of varying size specifying the variables in each interaction in
interaction_indices
- ax
matplotlib.pyplot.axes.Axes
Axes that will be used for plotting
- truncation_pctfloat
The proportion \(0<p\le 1\) of the sensitivity indices effects to plot
- max_slicesinteger
The maximum number of slices in the pie-chart. Will only be active if the turncation_pct gives more than max_slices
- rvstring
The name of the random variables when creating labels
- qoiinteger
The index 0<qoi<nqoi of the quantitiy of interest to plot