Changeset 270 for doc/latex/classbdm_1_1mprod.tex
- Timestamp:
- 02/16/09 10:02:08 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/latex/classbdm_1_1mprod.tex
r269 r270 3 3 \label{classbdm_1_1mprod}\index{bdm::mprod@{bdm::mprod}} 4 4 } 5 Chain rule decomposition of \hyperlink{classbdm_1_1epdf}{epdf}.6 7 8 5 {\tt \#include $<$emix.h$>$} 9 6 … … 15 12 \end{center} 16 13 \end{figure} 17 Collaboration diagram for bdm::mprod:\nopagebreak 18 \begin{figure}[H] 19 \begin{center} 20 \leavevmode 21 \includegraphics[width=150pt]{classbdm_1_1mprod__coll__graph} 22 \end{center} 23 \end{figure} 24 \subsection*{Public Member Functions} 14 15 16 \subsection{Detailed Description} 17 Chain rule decomposition of \hyperlink{classbdm_1_1epdf}{epdf}. 18 19 Probability density in the form of Chain-rule decomposition: $\backslash$\mbox{[} f(x\_\-1,x\_\-2,x\_\-3) = f(x\_\-1$|$x\_\-2,x\_\-3)f(x\_\-2,x\_\-3)f(x\_\-3) $\backslash$\mbox{]} Note that \subsection*{Public Member Functions} 25 20 \begin{CompactItemize} 26 21 \item … … 45 40 \begin{CompactList}\small\item\em find common rv, flag \item\end{CompactList}\item 46 41 \hypertarget{classbdm_1_1compositepdf_c71fc2c51f49d797e61f479f543c75ce}{ 47 void \hyperlink{classbdm_1_1compositepdf_c71fc2c51f49d797e61f479f543c75ce}{setrvc} (const \hyperlink{classbdm_1_1RV}{RV} \& \hyperlink{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51}{rv}, \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{rvc})}42 void \hyperlink{classbdm_1_1compositepdf_c71fc2c51f49d797e61f479f543c75ce}{setrvc} (const \hyperlink{classbdm_1_1RV}{RV} \&rv, \hyperlink{classbdm_1_1RV}{RV} \&\hyperlink{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{rvc})} 48 43 \label{classbdm_1_1compositepdf_c71fc2c51f49d797e61f479f543c75ce} 49 44 50 \begin{CompactList}\small\item\em common rvc of all mpdfs is written to rvc \item\end{CompactList}\item 45 \begin{CompactList}\small\item\em common rvc of all mpdfs is written to rvc \item\end{CompactList}\end{CompactItemize} 46 \begin{Indent}{\bf Matematical operations}\par 47 \begin{CompactItemize} 48 \item 51 49 virtual vec \hyperlink{classbdm_1_1mpdf_f0c1db6fcbb3aae2dd6123884457a367}{samplecond} (const vec \&cond) 52 50 \begin{CompactList}\small\item\em Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \item\end{CompactList}\item 53 virtual mat \hyperlink{classbdm_1_1mpdf_ ee26963a637b2ea1fb1933652981e652}{samplecond\_\-m} (const vec \&cond, vec \&ll, int N)51 virtual mat \hyperlink{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{samplecond\_\-m} (const vec \&cond, int N) 54 52 \begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item 55 53 \hypertarget{classbdm_1_1mpdf_db94784a9aacf74c65c5a014f6743530}{ … … 62 60 \label{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb} 63 61 64 \begin{CompactList}\small\item\em Matrix version of evallogcond. \item\end{CompactList}\item 65 \hypertarget{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8}{ 66 \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8}{\_\-rvc} () const } 67 \label{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8} 68 69 \begin{CompactList}\small\item\em access function \item\end{CompactList}\item 70 \hypertarget{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151}{ 71 \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151}{\_\-rv} () const } 72 \label{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151} 73 74 \begin{CompactList}\small\item\em access function \item\end{CompactList}\item 62 \begin{CompactList}\small\item\em Matrix version of evallogcond. \item\end{CompactList}\end{CompactItemize} 63 \end{Indent} 64 \begin{Indent}{\bf Access to attributes}\par 65 \begin{CompactItemize} 66 \item 67 \hypertarget{classbdm_1_1mpdf_5571482d150fbcb72cc36f6694ce1a10}{ 68 \hyperlink{classbdm_1_1RV}{RV} \textbf{\_\-rv} ()} 69 \label{classbdm_1_1mpdf_5571482d150fbcb72cc36f6694ce1a10} 70 71 \item 72 \hypertarget{classbdm_1_1mpdf_26001264236846897bd11e4baad47245}{ 73 \hyperlink{classbdm_1_1RV}{RV} \textbf{\_\-rvc} ()} 74 \label{classbdm_1_1mpdf_26001264236846897bd11e4baad47245} 75 76 \item 77 \hypertarget{classbdm_1_1mpdf_1c2bae3e1e90874e72941863974ec0ed}{ 78 int \textbf{dimension} ()} 79 \label{classbdm_1_1mpdf_1c2bae3e1e90874e72941863974ec0ed} 80 81 \item 82 \hypertarget{classbdm_1_1mpdf_35e135910aed187b7290742f50e61bc8}{ 83 int \textbf{dimensionc} ()} 84 \label{classbdm_1_1mpdf_35e135910aed187b7290742f50e61bc8} 85 86 \item 75 87 \hypertarget{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{ 76 \hyperlink{classbdm_1_1epdf}{epdf} \& \ hyperlink{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{\_\-epdf} ()}88 \hyperlink{classbdm_1_1epdf}{epdf} \& \textbf{\_\-epdf} ()} 77 89 \label{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6} 78 90 79 \ begin{CompactList}\small\item\em access function \item\end{CompactList}\item91 \item 80 92 \hypertarget{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{ 81 \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \ hyperlink{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{\_\-e} ()}93 \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \textbf{\_\-e} ()} 82 94 \label{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80} 83 95 84 \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} 96 \end{CompactItemize} 97 \end{Indent} 98 \begin{Indent}{\bf Connection to other objects}\par 99 \begin{CompactItemize} 100 \item 101 \hypertarget{classbdm_1_1mpdf_7631a5570e4ade1420065e8df78f4401}{ 102 void \textbf{set\_\-rvc} (const \hyperlink{classbdm_1_1RV}{RV} \&rvc0)} 103 \label{classbdm_1_1mpdf_7631a5570e4ade1420065e8df78f4401} 104 105 \item 106 \hypertarget{classbdm_1_1mpdf_18ac26bc2f96ae01ef4eb06178abbd75}{ 107 void \textbf{set\_\-rv} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0)} 108 \label{classbdm_1_1mpdf_18ac26bc2f96ae01ef4eb06178abbd75} 109 110 \item 111 \hypertarget{classbdm_1_1mpdf_f8e3798150b42fd1f3e16ddbbe0e7045}{ 112 bool \textbf{isnamed} ()} 113 \label{classbdm_1_1mpdf_f8e3798150b42fd1f3e16ddbbe0e7045} 114 115 \end{CompactItemize} 116 \end{Indent} 85 117 \subsection*{Protected Attributes} 86 118 \begin{CompactItemize} … … 90 122 \label{classbdm_1_1mprod_eca722ed1b219727c6c0f8cbc6bf1e51} 91 123 92 \begin{CompactList}\small\item\em pointers to epdfs - shortcut to \hyperlink{classbdm_1_1compositepdf_23faf2debc4dde10836393b8c665914a}{mpdfs()}.\ hyperlink{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{\_\-epdf()}\item\end{CompactList}\item124 \begin{CompactList}\small\item\em pointers to epdfs - shortcut to \hyperlink{classbdm_1_1compositepdf_23faf2debc4dde10836393b8c665914a}{mpdfs()}.\_\-epdf() \item\end{CompactList}\item 93 125 \hypertarget{classbdm_1_1mprod_acf679b3b1d48629c5a042d9ac0d973f}{ 94 126 Array$<$ \hyperlink{classbdm_1_1datalink__m2m}{datalink\_\-m2m} $\ast$ $>$ \hyperlink{classbdm_1_1mprod_acf679b3b1d48629c5a042d9ac0d973f}{dls}} … … 106 138 107 139 \begin{CompactList}\small\item\em Elements of composition. \item\end{CompactList}\item 108 \hypertarget{classbdm_1_1mpdf_ 9bcfb45435d30983f436d41c298cbb51}{109 \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51}{rv}}110 \label{classbdm_1_1mpdf_ 9bcfb45435d30983f436d41c298cbb51}111 112 \begin{CompactList}\small\item\em modeled random variable\item\end{CompactList}\item140 \hypertarget{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{ 141 int \hyperlink{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6}{dimc}} 142 \label{classbdm_1_1mpdf_7c1900976ff13dbc09c9729b3bbff9e6} 143 144 \begin{CompactList}\small\item\em dimension of the condition \item\end{CompactList}\item 113 145 \hypertarget{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{ 114 146 \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{rvc}} … … 122 154 \begin{CompactList}\small\item\em pointer to internal \hyperlink{classbdm_1_1epdf}{epdf} \item\end{CompactList}\end{CompactItemize} 123 155 124 125 \subsection{Detailed Description}126 Chain rule decomposition of \hyperlink{classbdm_1_1epdf}{epdf}.127 128 Probability density in the form of Chain-rule decomposition: $\backslash$\mbox{[} f(x\_\-1,x\_\-2,x\_\-3) = f(x\_\-1$|$x\_\-2,x\_\-3)f(x\_\-2,x\_\-3)f(x\_\-3) $\backslash$\mbox{]} Note that129 156 130 157 \subsection{Member Function Documentation} … … 140 167 Ugly hack to help to discover if mpfs are not in proper order. Correct solution = check that explicitely. 141 168 142 References bdm:: RV::count(), dls, epdfs, bdm::compositepdf::mpdfs, bdm::compositepdf::n, and bdm::mpdf::rv.\hypertarget{classbdm_1_1compositepdf_c73d39acc4378eee6a63155c3517d3c9}{169 References bdm::epdf::dimension(), dls, bdm::mpdf::ep, epdfs, bdm::compositepdf::mpdfs, and bdm::compositepdf::n.\hypertarget{classbdm_1_1compositepdf_c73d39acc4378eee6a63155c3517d3c9}{ 143 170 \index{bdm::mprod@{bdm::mprod}!getrv@{getrv}} 144 171 \index{getrv@{getrv}!bdm::mprod@{bdm::mprod}} … … 174 201 References bdm::mpdf::condition(), bdm::mpdf::ep, and bdm::epdf::sample(). 175 202 176 Referenced by bdm::MPF$<$ BM\_\-T $>$::bayes(), bdm::PF::bayes(), and bdm::ArxDS::step().\hypertarget{classbdm_1_1mpdf_ ee26963a637b2ea1fb1933652981e652}{203 Referenced by bdm::MPF$<$ BM\_\-T $>$::bayes(), bdm::PF::bayes(), and bdm::ArxDS::step().\hypertarget{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005}{ 177 204 \index{bdm::mprod@{bdm::mprod}!samplecond\_\-m@{samplecond\_\-m}} 178 205 \index{samplecond\_\-m@{samplecond\_\-m}!bdm::mprod@{bdm::mprod}} 179 \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{]}}}}180 \label{classbdm_1_1mpdf_ ee26963a637b2ea1fb1933652981e652}206 \subsubsection[samplecond\_\-m]{\setlength{\rightskip}{0pt plus 5cm}virtual mat bdm::mpdf::samplecond\_\-m (const vec \& {\em cond}, \/ int {\em N})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} 207 \label{classbdm_1_1mpdf_afe4185b26baeb03688202e254d3b005} 181 208 182 209 … … 190 217 191 218 192 References bdm::mpdf::condition(), bdm:: RV::count(), bdm::mpdf::ep, bdm::epdf::evallog(), bdm::mpdf::rv, and bdm::epdf::sample().219 References bdm::mpdf::condition(), bdm::epdf::dimension(), bdm::mpdf::ep, and bdm::epdf::sample(). 193 220 194 221 The documentation for this class was generated from the following file:\begin{CompactItemize}