[RF][RS] Unify BayesianCalculator::GetInterval() 1D and ND code paths
#21994
+98
−68
BayesianCalculator::GetInterval() 1D and ND code paths
#21994