37 | | \hypertarget{classmlnorm_1bd939dbf8ec7b8066d3f18abba6822b}{ |
38 | | vec \hyperlink{classmlnorm_1bd939dbf8ec7b8066d3f18abba6822b}{samplecond} (const vec \&cond, double \&lik)} |
39 | | \label{classmlnorm_1bd939dbf8ec7b8066d3f18abba6822b} |
40 | | |
41 | | \begin{CompactList}\small\item\em Generate one sample of the posterior. \item\end{CompactList}\item |
42 | | \hypertarget{classmlnorm_06a3600a414b4b0f006ce9440f462817}{ |
43 | | mat \hyperlink{classmlnorm_06a3600a414b4b0f006ce9440f462817}{samplecond} (const vec \&cond, vec \&lik, int n)} |
44 | | \label{classmlnorm_06a3600a414b4b0f006ce9440f462817} |
45 | | |
46 | | \begin{CompactList}\small\item\em Generate matrix of samples of the posterior. \item\end{CompactList}\item |
| 42 | \hypertarget{classmlnorm_2732ae47835dd25d5784bf08fde0a546}{ |
| 43 | vec \& \hyperlink{classmlnorm_2732ae47835dd25d5784bf08fde0a546}{\_\-mu\_\-const} ()} |
| 44 | \label{classmlnorm_2732ae47835dd25d5784bf08fde0a546} |
| 45 | |
| 46 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
| 47 | \hypertarget{classmlnorm_65ec3840c21b21102896bfd2282b47b3}{ |
| 48 | mat \& \hyperlink{classmlnorm_65ec3840c21b21102896bfd2282b47b3}{\_\-A} ()} |
| 49 | \label{classmlnorm_65ec3840c21b21102896bfd2282b47b3} |
| 50 | |
| 51 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
| 52 | \hypertarget{classmlnorm_3ff2b03fbb5e1133a5fe1bf831939f63}{ |
| 53 | mat \hyperlink{classmlnorm_3ff2b03fbb5e1133a5fe1bf831939f63}{\_\-R} ()} |
| 54 | \label{classmlnorm_3ff2b03fbb5e1133a5fe1bf831939f63} |
| 55 | |
| 56 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
| 57 | virtual vec \hyperlink{classmpdf_3f172b79ec4a5ebc87898a5381141f1b}{samplecond} (const vec \&cond, double \&ll) |
| 58 | \begin{CompactList}\small\item\em Returns the required moment of the \hyperlink{classepdf}{epdf}. \item\end{CompactList}\item |
| 59 | virtual mat \hyperlink{classmpdf_0e37163660f93df2a4d723cedb1da89c}{samplecond} (const vec \&cond, vec \&ll, int N) |
| 60 | \begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item |
57 | | \hypertarget{classmpdf_ec9c850305984582548e8deb64f0ffe8}{ |
58 | | \hyperlink{classRV}{RV} \hyperlink{classmpdf_ec9c850305984582548e8deb64f0ffe8}{\_\-rvc} ()} |
59 | | \label{classmpdf_ec9c850305984582548e8deb64f0ffe8} |
| 66 | \hypertarget{classmpdf_b7b2da35080cd15f1be365b805e7277e}{ |
| 67 | virtual vec \textbf{evalcond\_\-m} (const mat \&Dt, const vec \&cond)} |
| 68 | \label{classmpdf_b7b2da35080cd15f1be365b805e7277e} |
| 69 | |
| 70 | \item |
| 71 | \hypertarget{classmpdf_15ef062183b1ccdf794732d5fa0b77cd}{ |
| 72 | \hyperlink{classRV}{RV} \hyperlink{classmpdf_15ef062183b1ccdf794732d5fa0b77cd}{\_\-rvc} () const } |
| 73 | \label{classmpdf_15ef062183b1ccdf794732d5fa0b77cd} |
| 88 | \item |
| 89 | \hypertarget{classmlnorm_b76ee2171ace4fb3ff95a131ae8fc421}{ |
| 90 | \hyperlink{classenorm}{enorm}$<$ sq\_\-T $>$ \hyperlink{classmlnorm_b76ee2171ace4fb3ff95a131ae8fc421}{epdf}} |
| 91 | \label{classmlnorm_b76ee2171ace4fb3ff95a131ae8fc421} |
| 92 | |
| 93 | \begin{CompactList}\small\item\em Internal \hyperlink{classepdf}{epdf} that arise by conditioning on {\tt rvc}. \item\end{CompactList}\item |
| 94 | \hypertarget{classmlnorm_90a62528ca1ce79b6396ff899119da0f}{ |
| 95 | mat \textbf{A}} |
| 96 | \label{classmlnorm_90a62528ca1ce79b6396ff899119da0f} |
| 97 | |
| 98 | \item |
| 99 | \hypertarget{classmlnorm_ebab82017f10fbde483971bbf3b4004d}{ |
| 100 | vec \textbf{mu\_\-const}} |
| 101 | \label{classmlnorm_ebab82017f10fbde483971bbf3b4004d} |
| 102 | |
| 103 | \item |
| 104 | \hypertarget{classmlnorm_17552bef9aeba92a42516fe7d39a5893}{ |
| 105 | vec \& \textbf{\_\-mu}} |
| 106 | \label{classmlnorm_17552bef9aeba92a42516fe7d39a5893} |
| 107 | |
| 141 | \subsection{Member Function Documentation} |
| 142 | \hypertarget{classmpdf_3f172b79ec4a5ebc87898a5381141f1b}{ |
| 143 | \index{mlnorm@{mlnorm}!samplecond@{samplecond}} |
| 144 | \index{samplecond@{samplecond}!mlnorm@{mlnorm}} |
| 145 | \subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}virtual vec mpdf::samplecond (const vec \& {\em cond}, \/ double \& {\em ll})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
| 146 | \label{classmpdf_3f172b79ec4a5ebc87898a5381141f1b} |
| 147 | |
| 148 | |
| 149 | Returns the required moment of the \hyperlink{classepdf}{epdf}. |
| 150 | |
| 151 | Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \begin{Desc} |
| 152 | \item[Parameters:] |
| 153 | \begin{description} |
| 154 | \item[{\em cond}]is numeric value of {\tt rv} \item[{\em ll}]is a return value of log-likelihood of the sample. \end{description} |
| 155 | \end{Desc} |
| 156 | |
| 157 | |
| 158 | Reimplemented in \hyperlink{classmprod_a48887eb8738a9e5550bfc38eb8e9d68}{mprod}. |
| 159 | |
| 160 | References mpdf::condition(), mpdf::ep, epdf::evalpdflog(), and epdf::sample(). |
| 161 | |
| 162 | Referenced by MPF$<$ BM\_\-T $>$::bayes(), and PF::bayes().\hypertarget{classmpdf_0e37163660f93df2a4d723cedb1da89c}{ |
| 163 | \index{mlnorm@{mlnorm}!samplecond@{samplecond}} |
| 164 | \index{samplecond@{samplecond}!mlnorm@{mlnorm}} |
| 165 | \subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}virtual mat mpdf::samplecond (const vec \& {\em cond}, \/ vec \& {\em ll}, \/ int {\em N})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
| 166 | \label{classmpdf_0e37163660f93df2a4d723cedb1da89c} |
| 167 | |
| 168 | |
| 169 | Returns. |
| 170 | |
| 171 | \begin{Desc} |
| 172 | \item[Parameters:] |
| 173 | \begin{description} |
| 174 | \item[{\em N}]samples from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \item[{\em cond}]is numeric value of {\tt rv} \item[{\em ll}]is a return value of log-likelihood of the sample. \end{description} |
| 175 | \end{Desc} |
| 176 | |
| 177 | |
| 178 | Reimplemented in \hyperlink{classmprod_e171c40e210539c2af01d6237785620b}{mprod}. |
| 179 | |
| 180 | References mpdf::condition(), RV::count(), mpdf::ep, epdf::evalpdflog(), mpdf::rv, and epdf::sample(). |
| 181 | |