% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reconc_BUIS.R
\name{.core_reconc_BUIS}
\alias{.core_reconc_BUIS}
\title{Core Reconciliation via Bayesian Universality Information Sharing}
\usage{
.core_reconc_BUIS(
  A,
  H,
  G,
  B,
  upper_base_fc_H,
  in_typeH,
  distr_H,
  upper_base_fc_G,
  in_typeG,
  distr_G,
  .comp_w = .compute_weights,
  suppress_warnings = FALSE,
  return_upper = TRUE
)
}
\arguments{
\item{A}{Matrix defining the overall hierarchy.}

\item{H}{Matrix defining hierarchical constraints.}

\item{G}{Matrix defining general linear constraints.}

\item{B}{Matrix of bottom level base forecast samples.}

\item{upper_base_fc_H}{List of upper base forecasts for hierarchical constraints.}

\item{in_typeH}{Character string specifying input type for H forecasts ('pmf', 'samples', or 'params').}

\item{distr_H}{Character string specifying distribution type for H forecasts ('poisson' or 'nbinom').}

\item{upper_base_fc_G}{List of upper base forecasts for general constraints.}

\item{in_typeG}{Character string specifying input type for G forecasts ('pmf', 'samples', or 'params').}

\item{distr_G}{Character string specifying distribution type for G forecasts ('poisson' or 'nbinom').}

\item{.comp_w}{Function to compute weights for importance sampling. Default is \code{.compute_weights}.}

\item{suppress_warnings}{Logical. If TRUE, suppresses warnings about sample quality. Default is FALSE.}
}
\value{
A list containing:
\itemize{
\item \code{bottom_rec}: List with reconciled bottom forecasts (pmf and/or samples).
\item \code{upper_rec_H}: List with reconciled upper forecasts for H constraints.
\item \code{upper_rec_G}: List with reconciled upper forecasts for G constraints.
}
}
\description{
Internal function that performs the core reconciliation logic for the BUIS method, which
reconciles forecasts using importance sampling based on both hierarchical and equality
constraints through a Bayesian framework.
}
\keyword{internal}
