32 | | virtual \hyperlink{classmerger_51e425ee1dd46d73353526e6a1c24ca3}{$\sim$merger} () |
| 32 | \hypertarget{classmerger_79420e251308df4502c834171d518ad9}{ |
| 33 | void \hyperlink{classmerger_79420e251308df4502c834171d518ad9}{set\_\-parameters} (double beta0, int Ns0, int Nc0)} |
| 34 | \label{classmerger_79420e251308df4502c834171d518ad9} |
| 35 | |
| 36 | \begin{CompactList}\small\item\em Set internal parameters used in approximation. \item\end{CompactList}\item |
| 37 | \hypertarget{classmerger_02d2a445e44a87f37ee3a2b9b40cffd1}{ |
| 38 | void \hyperlink{classmerger_02d2a445e44a87f37ee3a2b9b40cffd1}{init} ()} |
| 39 | \label{classmerger_02d2a445e44a87f37ee3a2b9b40cffd1} |
| 40 | |
| 41 | \begin{CompactList}\small\item\em Initialize the proposal density. This function must be called before \hyperlink{classmerger_bc23accc77ec766bce7202934e2c180c}{merge()}! \item\end{CompactList}\item |
| 42 | \hypertarget{classmerger_e56ad4a2bc9be2ddfc051626adf27715}{ |
| 43 | void \hyperlink{classmerger_e56ad4a2bc9be2ddfc051626adf27715}{merge} (const \hyperlink{classepdf}{epdf} $\ast$g0)} |
| 44 | \label{classmerger_e56ad4a2bc9be2ddfc051626adf27715} |
| 45 | |
| 46 | \begin{CompactList}\small\item\em Create a mixture density using known proposal. \item\end{CompactList}\item |
| 47 | \hypertarget{classmerger_bc23accc77ec766bce7202934e2c180c}{ |
| 48 | void \hyperlink{classmerger_bc23accc77ec766bce7202934e2c180c}{merge} ()} |
| 49 | \label{classmerger_bc23accc77ec766bce7202934e2c180c} |
| 50 | |
| 51 | \begin{CompactList}\small\item\em Create a mixture density, make sure to call \hyperlink{classmerger_02d2a445e44a87f37ee3a2b9b40cffd1}{init()} before the first call. \item\end{CompactList}\item |
| 52 | \hypertarget{classmerger_217c65f335c603033fa09a2ecc64bc05}{ |
| 53 | vec \hyperlink{classmerger_217c65f335c603033fa09a2ecc64bc05}{lognorm\_\-merge} (mat \&lW)} |
| 54 | \label{classmerger_217c65f335c603033fa09a2ecc64bc05} |
| 55 | |
| 56 | \begin{CompactList}\small\item\em Merge log-likelihood values. \item\end{CompactList}\item |
| 57 | vec \hyperlink{classmerger_379198c3d2063bfa63f5d1245a2511ba}{sample} () const |
| 58 | \item |
| 59 | \hypertarget{classmerger_8c37688902b1a1e9fa32edc5709e5a00}{ |
| 60 | double \hyperlink{classmerger_8c37688902b1a1e9fa32edc5709e5a00}{evalpdflog} (const vec \&dt) const } |
| 61 | \label{classmerger_8c37688902b1a1e9fa32edc5709e5a00} |
| 62 | |
| 63 | \begin{CompactList}\small\item\em Compute log-probability of argument {\tt val}. \item\end{CompactList}\item |
| 64 | \hypertarget{classmerger_3a46999cd77047d5d4ac6c1cb735a83e}{ |
| 65 | vec \hyperlink{classmerger_3a46999cd77047d5d4ac6c1cb735a83e}{mean} () const } |
| 66 | \label{classmerger_3a46999cd77047d5d4ac6c1cb735a83e} |
| 67 | |
| 68 | \begin{CompactList}\small\item\em return expected value \item\end{CompactList}\item |
| 69 | \hypertarget{classmerger_51e425ee1dd46d73353526e6a1c24ca3}{ |
| 70 | virtual \hyperlink{classmerger_51e425ee1dd46d73353526e6a1c24ca3}{$\sim$merger} ()} |
| 71 | \label{classmerger_51e425ee1dd46d73353526e6a1c24ca3} |
| 72 | |
39 | | vec \hyperlink{classmprod_a48887eb8738a9e5550bfc38eb8e9d68}{samplecond} (const vec \&cond, double \&ll) |
40 | | \begin{CompactList}\small\item\em Returns the required moment of the \hyperlink{classepdf}{epdf}. \item\end{CompactList}\item |
41 | | mat \hyperlink{classmprod_e171c40e210539c2af01d6237785620b}{samplecond} (const vec \&cond, vec \&ll, int N) |
42 | | \begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item |
43 | | \hypertarget{classmpdf_0f95a0cc6ab40611f46804682446ed83}{ |
44 | | virtual void \hyperlink{classmpdf_0f95a0cc6ab40611f46804682446ed83}{condition} (const vec \&cond)} |
45 | | \label{classmpdf_0f95a0cc6ab40611f46804682446ed83} |
| 79 | \hypertarget{classcompositepdf_5a4479785c1fdb2cc351fbea07b899ac}{ |
| 80 | void \textbf{setrvc} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}, \hyperlink{classRV}{RV} \&rvc)} |
| 81 | \label{classcompositepdf_5a4479785c1fdb2cc351fbea07b899ac} |
47 | | \begin{CompactList}\small\item\em Update {\tt ep} so that it represents this \hyperlink{classmpdf}{mpdf} conditioned on {\tt rvc} = cond. \item\end{CompactList}\item |
48 | | \hypertarget{classmpdf_80b738ece5bd4f8c4edaee4b38906f91}{ |
49 | | virtual double \hyperlink{classmpdf_80b738ece5bd4f8c4edaee4b38906f91}{evalcond} (const vec \&dt, const vec \&cond)} |
50 | | \label{classmpdf_80b738ece5bd4f8c4edaee4b38906f91} |
| 83 | \item |
| 84 | \hypertarget{classcompositepdf_08958c8f76d65de94ecc37b8d90bc77a}{ |
| 85 | void \textbf{setindices} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})} |
| 86 | \label{classcompositepdf_08958c8f76d65de94ecc37b8d90bc77a} |
52 | | \begin{CompactList}\small\item\em Shortcut for conditioning and evaluation of the internal \hyperlink{classepdf}{epdf}. In some cases, this operation can be implemented efficiently. \item\end{CompactList}\item |
53 | | \hypertarget{classmpdf_ec9c850305984582548e8deb64f0ffe8}{ |
54 | | \hyperlink{classRV}{RV} \hyperlink{classmpdf_ec9c850305984582548e8deb64f0ffe8}{\_\-rvc} ()} |
55 | | \label{classmpdf_ec9c850305984582548e8deb64f0ffe8} |
| 88 | \item |
| 89 | \hypertarget{classcompositepdf_3bd4ada95f381ea6c4cff2dc86e957c4}{ |
| 90 | void \textbf{setrvcinrv} (const \hyperlink{classRV}{RV} \&rvc, Array$<$ ivec $>$ \&rvcind)} |
| 91 | \label{classcompositepdf_3bd4ada95f381ea6c4cff2dc86e957c4} |
62 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
63 | | \hypertarget{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}{ |
64 | | \hyperlink{classepdf}{epdf} \& \hyperlink{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}{\_\-epdf} ()} |
65 | | \label{classmpdf_e17780ee5b2cfe05922a6c56af1462f8} |
| 98 | \begin{CompactList}\small\item\em Returns N samples from density $epdf(rv)$. \item\end{CompactList}\item |
| 99 | \hypertarget{classepdf_3ea597362e11a0040fe7c990269d072c}{ |
| 100 | virtual double \hyperlink{classepdf_3ea597362e11a0040fe7c990269d072c}{eval} (const vec \&val) const } |
| 101 | \label{classepdf_3ea597362e11a0040fe7c990269d072c} |
67 | | \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} |
| 103 | \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item |
| 104 | \hypertarget{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{ |
| 105 | virtual vec \hyperlink{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{evalpdflog\_\-m} (const mat \&Val) const } |
| 106 | \label{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c} |
| 107 | |
| 108 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
| 109 | \hypertarget{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{ |
| 110 | const \hyperlink{classRV}{RV} \& \hyperlink{classepdf_ca0d32aabb4cbba347e0c37fe8607562}{\_\-rv} () const } |
| 111 | \label{classepdf_ca0d32aabb4cbba347e0c37fe8607562} |
| 112 | |
| 113 | \begin{CompactList}\small\item\em access function, possibly dangerous! \item\end{CompactList}\item |
| 114 | \hypertarget{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{ |
| 115 | void \hyperlink{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5}{\_\-renewrv} (const \hyperlink{classRV}{RV} \&in\_\-rv)} |
| 116 | \label{classepdf_7fb94ce90d1ac7077d29f7d6a6c3e0a5} |
| 117 | |
| 118 | \begin{CompactList}\small\item\em modifier function - useful when copying epdfs \item\end{CompactList}\end{CompactItemize} |
75 | | \begin{CompactList}\small\item\em Additional pdf on the part in condition (if undefined);. \item\end{CompactList}\item |
76 | | \hypertarget{classmerger_11eb177ef6409926b2ba3b4630bceab1}{ |
77 | | Array$<$ ivec $>$ \hyperlink{classmerger_11eb177ef6409926b2ba3b4630bceab1}{overlaps}} |
78 | | \label{classmerger_11eb177ef6409926b2ba3b4630bceab1} |
| 126 | \begin{CompactList}\small\item\em Internal mixture of EF models. \item\end{CompactList}\item |
| 127 | \hypertarget{classmerger_ce84de1824875b4262eefb640e8c6d69}{ |
| 128 | int \hyperlink{classmerger_ce84de1824875b4262eefb640e8c6d69}{Ns}} |
| 129 | \label{classmerger_ce84de1824875b4262eefb640e8c6d69} |
95 | | \item |
96 | | \hypertarget{classmprod_c8f78fbcdb4e38ecd3197d2958082497}{ |
97 | | Array$<$ ivec $>$ \hyperlink{classmprod_c8f78fbcdb4e38ecd3197d2958082497}{rvinds}} |
98 | | \label{classmprod_c8f78fbcdb4e38ecd3197d2958082497} |
| 146 | \begin{CompactList}\small\item\em Number of mpdfs in the composite. \item\end{CompactList}\item |
| 147 | \hypertarget{classcompositepdf_637877061b917a16a0421bb5c4cd480d}{ |
| 148 | Array$<$ \hyperlink{classmpdf}{mpdf} $\ast$ $>$ \hyperlink{classcompositepdf_637877061b917a16a0421bb5c4cd480d}{mpdfs}} |
| 149 | \label{classcompositepdf_637877061b917a16a0421bb5c4cd480d} |
| 150 | |
| 151 | \begin{CompactList}\small\item\em Elements of composition. \item\end{CompactList}\item |
| 152 | \hypertarget{classcompositepdf_4d4a8269f9faefeca8cdc251a5a29a7f}{ |
| 153 | Array$<$ ivec $>$ \hyperlink{classcompositepdf_4d4a8269f9faefeca8cdc251a5a29a7f}{rvsinrv}} |
| 154 | \label{classcompositepdf_4d4a8269f9faefeca8cdc251a5a29a7f} |
110 | | \begin{CompactList}\small\item\em Indeces of rvc in common rvc. \item\end{CompactList}\item |
111 | | \hypertarget{classmpdf_f6687c07ff07d47812dd565368ca59eb}{ |
112 | | \hyperlink{classRV}{RV} \hyperlink{classmpdf_f6687c07ff07d47812dd565368ca59eb}{rv}} |
113 | | \label{classmpdf_f6687c07ff07d47812dd565368ca59eb} |
114 | | |
115 | | \begin{CompactList}\small\item\em modeled random variable \item\end{CompactList}\item |
116 | | \hypertarget{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{ |
117 | | \hyperlink{classRV}{RV} \hyperlink{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{rvc}} |
118 | | \label{classmpdf_acb7dda792b3cd5576f39fa3129abbab} |
119 | | |
120 | | \begin{CompactList}\small\item\em random variable in condition \item\end{CompactList}\item |
121 | | \hypertarget{classmpdf_7aa894208a32f3487827df6d5054424c}{ |
122 | | \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classmpdf_7aa894208a32f3487827df6d5054424c}{ep}} |
123 | | \label{classmpdf_7aa894208a32f3487827df6d5054424c} |
124 | | |
125 | | \begin{CompactList}\small\item\em pointer to internal \hyperlink{classepdf}{epdf} \item\end{CompactList}\end{CompactItemize} |
| 166 | \begin{CompactList}\small\item\em Identified of the random variable. \item\end{CompactList}\end{CompactItemize} |
133 | | \subsection{Constructor \& Destructor Documentation} |
134 | | \hypertarget{classmerger_51e425ee1dd46d73353526e6a1c24ca3}{ |
135 | | \index{merger@{merger}!$\sim$merger@{$\sim$merger}} |
136 | | \index{$\sim$merger@{$\sim$merger}!merger@{merger}} |
137 | | \subsubsection[$\sim$merger]{\setlength{\rightskip}{0pt plus 5cm}virtual merger::$\sim$merger ()\hspace{0.3cm}{\tt \mbox{[}inline, virtual\mbox{]}}}} |
138 | | \label{classmerger_51e425ee1dd46d73353526e6a1c24ca3} |
| 174 | \subsection{Member Function Documentation} |
| 175 | \hypertarget{classmerger_379198c3d2063bfa63f5d1245a2511ba}{ |
| 176 | \index{merger@{merger}!sample@{sample}} |
| 177 | \index{sample@{sample}!merger@{merger}} |
| 178 | \subsubsection[sample]{\setlength{\rightskip}{0pt plus 5cm}vec merger::sample () const\hspace{0.3cm}{\tt \mbox{[}inline, virtual\mbox{]}}}} |
| 179 | \label{classmerger_379198c3d2063bfa63f5d1245a2511ba} |
145 | | \subsection{Member Function Documentation} |
146 | | \hypertarget{classmprod_a48887eb8738a9e5550bfc38eb8e9d68}{ |
147 | | \index{merger@{merger}!samplecond@{samplecond}} |
148 | | \index{samplecond@{samplecond}!merger@{merger}} |
149 | | \subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}vec mprod::samplecond (const vec \& {\em cond}, \/ double \& {\em ll})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
150 | | \label{classmprod_a48887eb8738a9e5550bfc38eb8e9d68} |
| 184 | Implements \hyperlink{classepdf_8019654e494bf5e458f6fb947e11b262}{epdf}. |
153 | | Returns the required moment of the \hyperlink{classepdf}{epdf}. |
154 | | |
155 | | Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \begin{Desc} |
156 | | \item[Parameters:] |
157 | | \begin{description} |
158 | | \item[{\em cond}]is numeric value of {\tt rv} \item[{\em ll}]is a return value of log-likelihood of the sample. \end{description} |
159 | | \end{Desc} |
160 | | |
161 | | |
162 | | Reimplemented from \hyperlink{classmpdf_3f172b79ec4a5ebc87898a5381141f1b}{mpdf}. |
163 | | |
164 | | References RV::count(), mpdf::rv, mprod::rvcinds, mprod::rvcinrv, and mprod::rvinds. |
165 | | |
166 | | Referenced by mprod::samplecond().\hypertarget{classmprod_e171c40e210539c2af01d6237785620b}{ |
167 | | \index{merger@{merger}!samplecond@{samplecond}} |
168 | | \index{samplecond@{samplecond}!merger@{merger}} |
169 | | \subsubsection[samplecond]{\setlength{\rightskip}{0pt plus 5cm}mat mprod::samplecond (const vec \& {\em cond}, \/ vec \& {\em ll}, \/ int {\em N})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
170 | | \label{classmprod_e171c40e210539c2af01d6237785620b} |
171 | | |
172 | | |
173 | | Returns. |
174 | | |
175 | | \begin{Desc} |
176 | | \item[Parameters:] |
177 | | \begin{description} |
178 | | \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} |
179 | | \end{Desc} |
180 | | |
181 | | |
182 | | Reimplemented from \hyperlink{classmpdf_0e37163660f93df2a4d723cedb1da89c}{mpdf}. |
183 | | |
184 | | References RV::count(), mpdf::rv, and mprod::samplecond(). |
185 | | |
186 | | The documentation for this class was generated from the following file:\begin{CompactItemize} |
| 188 | The documentation for this class was generated from the following files:\begin{CompactItemize} |