[261] | 1 | \hypertarget{classbdm_1_1mepdf}{ |
---|
| 2 | \section{bdm::mepdf Class Reference} |
---|
| 3 | \label{classbdm_1_1mepdf}\index{bdm::mepdf@{bdm::mepdf}} |
---|
| 4 | } |
---|
| 5 | Unconditional \hyperlink{classbdm_1_1mpdf}{mpdf}, allows using \hyperlink{classbdm_1_1epdf}{epdf} in the role of \hyperlink{classbdm_1_1mpdf}{mpdf}. |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | {\tt \#include $<$libBM.h$>$} |
---|
| 9 | |
---|
| 10 | Inheritance diagram for bdm::mepdf:\nopagebreak |
---|
| 11 | \begin{figure}[H] |
---|
| 12 | \begin{center} |
---|
| 13 | \leavevmode |
---|
| 14 | \includegraphics[width=64pt]{classbdm_1_1mepdf__inherit__graph} |
---|
| 15 | \end{center} |
---|
| 16 | \end{figure} |
---|
| 17 | Collaboration diagram for bdm::mepdf:\nopagebreak |
---|
| 18 | \begin{figure}[H] |
---|
| 19 | \begin{center} |
---|
| 20 | \leavevmode |
---|
| 21 | \includegraphics[width=88pt]{classbdm_1_1mepdf__coll__graph} |
---|
| 22 | \end{center} |
---|
| 23 | \end{figure} |
---|
| 24 | \subsection*{Public Member Functions} |
---|
| 25 | \begin{CompactItemize} |
---|
| 26 | \item |
---|
| 27 | \hypertarget{classbdm_1_1mepdf_27cc32d1a810516c25bda51ddf886376}{ |
---|
| 28 | \hyperlink{classbdm_1_1mepdf_27cc32d1a810516c25bda51ddf886376}{mepdf} (const \hyperlink{classbdm_1_1epdf}{epdf} $\ast$em)} |
---|
| 29 | \label{classbdm_1_1mepdf_27cc32d1a810516c25bda51ddf886376} |
---|
| 30 | |
---|
| 31 | \begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item |
---|
| 32 | \hypertarget{classbdm_1_1mepdf_b2b898058169e7ed9a6dc7cd4e1c147c}{ |
---|
| 33 | void \hyperlink{classbdm_1_1mepdf_b2b898058169e7ed9a6dc7cd4e1c147c}{condition} (const vec \&cond)} |
---|
| 34 | \label{classbdm_1_1mepdf_b2b898058169e7ed9a6dc7cd4e1c147c} |
---|
| 35 | |
---|
| 36 | \begin{CompactList}\small\item\em Update {\tt ep} so that it represents this \hyperlink{classbdm_1_1mpdf}{mpdf} conditioned on {\tt rvc} = cond. \item\end{CompactList}\item |
---|
| 37 | virtual vec \hyperlink{classbdm_1_1mpdf_e4848a428d8ef0549c6e4a9ed386d9f2}{samplecond} (const vec \&cond, double \&ll) |
---|
| 38 | \begin{CompactList}\small\item\em Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \item\end{CompactList}\item |
---|
| 39 | virtual mat \hyperlink{classbdm_1_1mpdf_ee26963a637b2ea1fb1933652981e652}{samplecond\_\-m} (const vec \&cond, vec \&ll, int N) |
---|
| 40 | \begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item |
---|
| 41 | \hypertarget{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{ |
---|
| 42 | virtual double \hyperlink{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{evallogcond} (const vec \&dt, const vec \&cond)} |
---|
| 43 | \label{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b} |
---|
| 44 | |
---|
| 45 | \begin{CompactList}\small\item\em Shortcut for conditioning and evaluation of the internal \hyperlink{classbdm_1_1epdf}{epdf}. In some cases, this operation can be implemented efficiently. \item\end{CompactList}\item |
---|
| 46 | \hypertarget{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{ |
---|
| 47 | virtual vec \hyperlink{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{evallogcond\_\-m} (const mat \&Dt, const vec \&cond)} |
---|
| 48 | \label{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb} |
---|
| 49 | |
---|
| 50 | \begin{CompactList}\small\item\em Matrix version of evallogcond. \item\end{CompactList}\item |
---|
| 51 | \hypertarget{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8}{ |
---|
| 52 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8}{\_\-rvc} () const } |
---|
| 53 | \label{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8} |
---|
| 54 | |
---|
| 55 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 56 | \hypertarget{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151}{ |
---|
| 57 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151}{\_\-rv} () const } |
---|
| 58 | \label{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151} |
---|
| 59 | |
---|
| 60 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 61 | \hypertarget{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{ |
---|
| 62 | \hyperlink{classbdm_1_1epdf}{epdf} \& \hyperlink{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{\_\-epdf} ()} |
---|
| 63 | \label{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6} |
---|
| 64 | |
---|
| 65 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 66 | \hypertarget{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{ |
---|
| 67 | \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{\_\-e} ()} |
---|
| 68 | \label{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80} |
---|
| 69 | |
---|
| 70 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} |
---|
| 71 | \subsection*{Protected Attributes} |
---|
| 72 | \begin{CompactItemize} |
---|
| 73 | \item |
---|
| 74 | \hypertarget{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51}{ |
---|
| 75 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51}{rv}} |
---|
| 76 | \label{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51} |
---|
| 77 | |
---|
| 78 | \begin{CompactList}\small\item\em modeled random variable \item\end{CompactList}\item |
---|
| 79 | \hypertarget{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{ |
---|
| 80 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{rvc}} |
---|
| 81 | \label{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288} |
---|
| 82 | |
---|
| 83 | \begin{CompactList}\small\item\em random variable in condition \item\end{CompactList}\item |
---|
| 84 | \hypertarget{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{ |
---|
| 85 | \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{ep}} |
---|
| 86 | \label{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0} |
---|
| 87 | |
---|
| 88 | \begin{CompactList}\small\item\em pointer to internal \hyperlink{classbdm_1_1epdf}{epdf} \item\end{CompactList}\end{CompactItemize} |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | \subsection{Detailed Description} |
---|
| 92 | Unconditional \hyperlink{classbdm_1_1mpdf}{mpdf}, allows using \hyperlink{classbdm_1_1epdf}{epdf} in the role of \hyperlink{classbdm_1_1mpdf}{mpdf}. |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | \subsection{Member Function Documentation} |
---|
| 97 | \hypertarget{classbdm_1_1mpdf_e4848a428d8ef0549c6e4a9ed386d9f2}{ |
---|
| 98 | \index{bdm::mepdf@{bdm::mepdf}!samplecond@{samplecond}} |
---|
| 99 | \index{samplecond@{samplecond}!bdm::mepdf@{bdm::mepdf}} |
---|
| 100 | \subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}virtual vec bdm::mpdf::samplecond (const vec \& {\em cond}, \/ double \& {\em ll})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
---|
| 101 | \label{classbdm_1_1mpdf_e4848a428d8ef0549c6e4a9ed386d9f2} |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. |
---|
| 105 | |
---|
| 106 | \begin{Desc} |
---|
| 107 | \item[Parameters:] |
---|
| 108 | \begin{description} |
---|
| 109 | \item[{\em cond}]is numeric value of {\tt rv} \item[{\em ll}]is a return value of log-likelihood of the sample. \end{description} |
---|
| 110 | \end{Desc} |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | Reimplemented in \hyperlink{classbdm_1_1mprod_1a37c2aaba8bde7fce5351c39b6e1168}{bdm::mprod}. |
---|
| 114 | |
---|
| 115 | References bdm::mpdf::condition(), bdm::mpdf::ep, bdm::epdf::evallog(), and bdm::epdf::sample(). |
---|
| 116 | |
---|
| 117 | Referenced by bdm::MPF$<$ BM\_\-T $>$::bayes(), bdm::PF::bayes(), and bdm::ArxDS::step().\hypertarget{classbdm_1_1mpdf_ee26963a637b2ea1fb1933652981e652}{ |
---|
| 118 | \index{bdm::mepdf@{bdm::mepdf}!samplecond\_\-m@{samplecond\_\-m}} |
---|
| 119 | \index{samplecond\_\-m@{samplecond\_\-m}!bdm::mepdf@{bdm::mepdf}} |
---|
| 120 | \subsubsection[samplecond\_\-m]{\setlength{\rightskip}{0pt plus 5cm}virtual mat bdm::mpdf::samplecond\_\-m (const vec \& {\em cond}, \/ vec \& {\em ll}, \/ int {\em N})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
---|
| 121 | \label{classbdm_1_1mpdf_ee26963a637b2ea1fb1933652981e652} |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | Returns. |
---|
| 125 | |
---|
| 126 | \begin{Desc} |
---|
| 127 | \item[Parameters:] |
---|
| 128 | \begin{description} |
---|
| 129 | \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} |
---|
| 130 | \end{Desc} |
---|
| 131 | |
---|
| 132 | |
---|
| 133 | References bdm::mpdf::condition(), bdm::RV::count(), bdm::mpdf::ep, bdm::epdf::evallog(), bdm::mpdf::rv, and bdm::epdf::sample(). |
---|
| 134 | |
---|
| 135 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
| 136 | \item |
---|
| 137 | \hyperlink{libBM_8h}{libBM.h}\end{CompactItemize} |
---|