[261] | 1 | \hypertarget{classbdm_1_1mlstudent}{ |
---|
| 2 | \section{bdm::mlstudent Class Reference} |
---|
| 3 | \label{classbdm_1_1mlstudent}\index{bdm::mlstudent@{bdm::mlstudent}} |
---|
| 4 | } |
---|
| 5 | {\tt \#include $<$libEF.h$>$} |
---|
| 6 | |
---|
| 7 | Inheritance diagram for bdm::mlstudent:\nopagebreak |
---|
| 8 | \begin{figure}[H] |
---|
| 9 | \begin{center} |
---|
| 10 | \leavevmode |
---|
| 11 | \includegraphics[width=116pt]{classbdm_1_1mlstudent__inherit__graph} |
---|
| 12 | \end{center} |
---|
| 13 | \end{figure} |
---|
| 14 | Collaboration diagram for bdm::mlstudent:\nopagebreak |
---|
| 15 | \begin{figure}[H] |
---|
| 16 | \begin{center} |
---|
| 17 | \leavevmode |
---|
| 18 | \includegraphics[height=400pt]{classbdm_1_1mlstudent__coll__graph} |
---|
| 19 | \end{center} |
---|
| 20 | \end{figure} |
---|
| 21 | \subsection*{Public Member Functions} |
---|
| 22 | \begin{CompactItemize} |
---|
| 23 | \item |
---|
| 24 | \hypertarget{classbdm_1_1mlstudent_bc2b6a8c8ba7946e6a3f2b66aa56f288}{ |
---|
| 25 | \textbf{mlstudent} (const \hyperlink{classbdm_1_1RV}{RV} \&rv0, const \hyperlink{classbdm_1_1RV}{RV} \&rvc0)} |
---|
| 26 | \label{classbdm_1_1mlstudent_bc2b6a8c8ba7946e6a3f2b66aa56f288} |
---|
| 27 | |
---|
| 28 | \item |
---|
| 29 | \hypertarget{classbdm_1_1mlstudent_4cdf79aac1b2165c0290e73810a0e4a3}{ |
---|
| 30 | void \textbf{set\_\-parameters} (const mat \&A0, const vec \&mu0, const \hyperlink{classldmat}{ldmat} \&R0, const \hyperlink{classldmat}{ldmat} \&Lambda0)} |
---|
| 31 | \label{classbdm_1_1mlstudent_4cdf79aac1b2165c0290e73810a0e4a3} |
---|
| 32 | |
---|
| 33 | \item |
---|
| 34 | \hypertarget{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}{ |
---|
| 35 | void \hyperlink{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d}{condition} (const vec \&cond)} |
---|
| 36 | \label{classbdm_1_1mlstudent_efd37560585c8613897f30d3c2f58d0d} |
---|
| 37 | |
---|
| 38 | \begin{CompactList}\small\item\em Set value of {\tt rvc} . Result of this operation is stored in {\tt \hyperlink{classbdm_1_1epdf}{epdf}} use function {\tt \_\-ep} to access it. \item\end{CompactList}\item |
---|
| 39 | \hypertarget{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}{ |
---|
| 40 | void \hyperlink{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f}{set\_\-parameters} (const mat \&A, const vec \&mu0, const \hyperlink{classldmat}{ldmat} \&R)} |
---|
| 41 | \label{classbdm_1_1mlnorm_5d18dec3167584338a4775c1d165d96f} |
---|
| 42 | |
---|
| 43 | \begin{CompactList}\small\item\em Set {\tt A} and {\tt R}. \item\end{CompactList}\item |
---|
| 44 | \hypertarget{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}{ |
---|
| 45 | vec \& \hyperlink{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced}{\_\-mu\_\-const} ()} |
---|
| 46 | \label{classbdm_1_1mlnorm_56e587952f94fcac6cfc999eae6dbced} |
---|
| 47 | |
---|
| 48 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 49 | \hypertarget{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}{ |
---|
| 50 | mat \& \hyperlink{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614}{\_\-A} ()} |
---|
| 51 | \label{classbdm_1_1mlnorm_262a2a486bff585f34bb6a5005b02614} |
---|
| 52 | |
---|
| 53 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 54 | \hypertarget{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}{ |
---|
| 55 | mat \hyperlink{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604}{\_\-R} ()} |
---|
| 56 | \label{classbdm_1_1mlnorm_78120ecd1c2b1d7e80124b4603504604} |
---|
| 57 | |
---|
| 58 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 59 | virtual vec \hyperlink{classbdm_1_1mpdf_e4848a428d8ef0549c6e4a9ed386d9f2}{samplecond} (const vec \&cond, double \&ll) |
---|
| 60 | \begin{CompactList}\small\item\em Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. \item\end{CompactList}\item |
---|
| 61 | virtual mat \hyperlink{classbdm_1_1mpdf_ee26963a637b2ea1fb1933652981e652}{samplecond\_\-m} (const vec \&cond, vec \&ll, int N) |
---|
| 62 | \begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item |
---|
| 63 | \hypertarget{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{ |
---|
| 64 | virtual double \hyperlink{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b}{evallogcond} (const vec \&dt, const vec \&cond)} |
---|
| 65 | \label{classbdm_1_1mpdf_6336a8a72462e2a56a3989a220f18b1b} |
---|
| 66 | |
---|
| 67 | \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 |
---|
| 68 | \hypertarget{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{ |
---|
| 69 | virtual vec \hyperlink{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb}{evallogcond\_\-m} (const mat \&Dt, const vec \&cond)} |
---|
| 70 | \label{classbdm_1_1mpdf_0b0ed1ed663071bb7cf4a1349eb94fcb} |
---|
| 71 | |
---|
| 72 | \begin{CompactList}\small\item\em Matrix version of evallogcond. \item\end{CompactList}\item |
---|
| 73 | \hypertarget{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8}{ |
---|
| 74 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8}{\_\-rvc} () const } |
---|
| 75 | \label{classbdm_1_1mpdf_b3aba7311038bf990d706a64cab60cf8} |
---|
| 76 | |
---|
| 77 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 78 | \hypertarget{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151}{ |
---|
| 79 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151}{\_\-rv} () const } |
---|
| 80 | \label{classbdm_1_1mpdf_222d5280e309c5a053ba73841e98c151} |
---|
| 81 | |
---|
| 82 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 83 | \hypertarget{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{ |
---|
| 84 | \hyperlink{classbdm_1_1epdf}{epdf} \& \hyperlink{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6}{\_\-epdf} ()} |
---|
| 85 | \label{classbdm_1_1mpdf_1892fe3933488942253679f068e9e7f6} |
---|
| 86 | |
---|
| 87 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
| 88 | \hypertarget{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{ |
---|
| 89 | \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80}{\_\-e} ()} |
---|
| 90 | \label{classbdm_1_1mpdf_05e843fd11c410a99dad2b88c55aca80} |
---|
| 91 | |
---|
| 92 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} |
---|
| 93 | \subsection*{Protected Attributes} |
---|
| 94 | \begin{CompactItemize} |
---|
| 95 | \item |
---|
| 96 | \hypertarget{classbdm_1_1mlstudent_41595144a79594acbe288c6b59412657}{ |
---|
| 97 | \hyperlink{classldmat}{ldmat} \textbf{Lambda}} |
---|
| 98 | \label{classbdm_1_1mlstudent_41595144a79594acbe288c6b59412657} |
---|
| 99 | |
---|
| 100 | \item |
---|
| 101 | \hypertarget{classbdm_1_1mlstudent_72e9bda4d6684e07faafc4b2192daf39}{ |
---|
| 102 | \hyperlink{classldmat}{ldmat} \& \textbf{\_\-R}} |
---|
| 103 | \label{classbdm_1_1mlstudent_72e9bda4d6684e07faafc4b2192daf39} |
---|
| 104 | |
---|
| 105 | \item |
---|
| 106 | \hypertarget{classbdm_1_1mlstudent_1c063ad6cb6e079ee11bc4128c2c9fe8}{ |
---|
| 107 | \hyperlink{classldmat}{ldmat} \textbf{Re}} |
---|
| 108 | \label{classbdm_1_1mlstudent_1c063ad6cb6e079ee11bc4128c2c9fe8} |
---|
| 109 | |
---|
| 110 | \item |
---|
| 111 | \hypertarget{classbdm_1_1mlnorm_150ad6acb223b0a0abeaf92346686dcd}{ |
---|
| 112 | \hyperlink{classbdm_1_1enorm}{enorm}$<$ \hyperlink{classldmat}{ldmat} $>$ \hyperlink{classbdm_1_1mlnorm_150ad6acb223b0a0abeaf92346686dcd}{epdf}} |
---|
| 113 | \label{classbdm_1_1mlnorm_150ad6acb223b0a0abeaf92346686dcd} |
---|
| 114 | |
---|
| 115 | \begin{CompactList}\small\item\em Internal epdf that arise by conditioning on {\tt rvc}. \item\end{CompactList}\item |
---|
| 116 | \hypertarget{classbdm_1_1mlnorm_8207ae86d1722102897e139a23e29af8}{ |
---|
| 117 | mat \textbf{A}} |
---|
| 118 | \label{classbdm_1_1mlnorm_8207ae86d1722102897e139a23e29af8} |
---|
| 119 | |
---|
| 120 | \item |
---|
| 121 | \hypertarget{classbdm_1_1mlnorm_3a019144d414d1737aea331ffe1c3845}{ |
---|
| 122 | vec \textbf{mu\_\-const}} |
---|
| 123 | \label{classbdm_1_1mlnorm_3a019144d414d1737aea331ffe1c3845} |
---|
| 124 | |
---|
| 125 | \item |
---|
| 126 | \hypertarget{classbdm_1_1mlnorm_dea5ea658d5020c11da91275f592244b}{ |
---|
| 127 | vec \& \textbf{\_\-mu}} |
---|
| 128 | \label{classbdm_1_1mlnorm_dea5ea658d5020c11da91275f592244b} |
---|
| 129 | |
---|
| 130 | \item |
---|
| 131 | \hypertarget{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51}{ |
---|
| 132 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51}{rv}} |
---|
| 133 | \label{classbdm_1_1mpdf_9bcfb45435d30983f436d41c298cbb51} |
---|
| 134 | |
---|
| 135 | \begin{CompactList}\small\item\em modeled random variable \item\end{CompactList}\item |
---|
| 136 | \hypertarget{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{ |
---|
| 137 | \hyperlink{classbdm_1_1RV}{RV} \hyperlink{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288}{rvc}} |
---|
| 138 | \label{classbdm_1_1mpdf_5a5f08950daa08b85b01ddf4e1c36288} |
---|
| 139 | |
---|
| 140 | \begin{CompactList}\small\item\em random variable in condition \item\end{CompactList}\item |
---|
| 141 | \hypertarget{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{ |
---|
| 142 | \hyperlink{classbdm_1_1epdf}{epdf} $\ast$ \hyperlink{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0}{ep}} |
---|
| 143 | \label{classbdm_1_1mpdf_5eea43c56d38e4441bfb30270db949c0} |
---|
| 144 | |
---|
| 145 | \begin{CompactList}\small\item\em pointer to internal \hyperlink{classbdm_1_1epdf}{epdf} \item\end{CompactList}\end{CompactItemize} |
---|
| 146 | \subsection*{Friends} |
---|
| 147 | \begin{CompactItemize} |
---|
| 148 | \item |
---|
| 149 | \hypertarget{classbdm_1_1mlnorm_1917009347bb410f73bf827df8767b09}{ |
---|
| 150 | std::ostream \& \textbf{operator$<$$<$} (std::ostream \&os, \hyperlink{classbdm_1_1mlnorm}{mlnorm}$<$ sq\_\-M $>$ \&ml)} |
---|
| 151 | \label{classbdm_1_1mlnorm_1917009347bb410f73bf827df8767b09} |
---|
| 152 | |
---|
| 153 | \end{CompactItemize} |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | \subsection{Detailed Description} |
---|
| 157 | (Approximate) Student t density with linear function of mean value |
---|
| 158 | |
---|
| 159 | The internal \hyperlink{classbdm_1_1epdf}{epdf} of this class is of the type of a Gaussian (\hyperlink{classbdm_1_1enorm}{enorm}). However, each conditioning is trying to assure the best possible approximation by taking into account the zeta function. See \mbox{[}\mbox{]} for reference. |
---|
| 160 | |
---|
| 161 | Perhaps a moment-matching technique? |
---|
| 162 | |
---|
| 163 | \subsection{Member Function Documentation} |
---|
| 164 | \hypertarget{classbdm_1_1mpdf_e4848a428d8ef0549c6e4a9ed386d9f2}{ |
---|
| 165 | \index{bdm::mlstudent@{bdm::mlstudent}!samplecond@{samplecond}} |
---|
| 166 | \index{samplecond@{samplecond}!bdm::mlstudent@{bdm::mlstudent}} |
---|
| 167 | \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{]}}}} |
---|
| 168 | \label{classbdm_1_1mpdf_e4848a428d8ef0549c6e4a9ed386d9f2} |
---|
| 169 | |
---|
| 170 | |
---|
| 171 | Returns a sample from the density conditioned on {\tt cond}, $x \sim epdf(rv|cond)$. |
---|
| 172 | |
---|
| 173 | \begin{Desc} |
---|
| 174 | \item[Parameters:] |
---|
| 175 | \begin{description} |
---|
| 176 | \item[{\em cond}]is numeric value of {\tt rv} \item[{\em ll}]is a return value of log-likelihood of the sample. \end{description} |
---|
| 177 | \end{Desc} |
---|
| 178 | |
---|
| 179 | |
---|
| 180 | Reimplemented in \hyperlink{classbdm_1_1mprod_1a37c2aaba8bde7fce5351c39b6e1168}{bdm::mprod}. |
---|
| 181 | |
---|
| 182 | References bdm::mpdf::condition(), bdm::mpdf::ep, bdm::epdf::evallog(), and bdm::epdf::sample(). |
---|
| 183 | |
---|
| 184 | Referenced by bdm::MPF$<$ BM\_\-T $>$::bayes(), bdm::PF::bayes(), and bdm::ArxDS::step().\hypertarget{classbdm_1_1mpdf_ee26963a637b2ea1fb1933652981e652}{ |
---|
| 185 | \index{bdm::mlstudent@{bdm::mlstudent}!samplecond\_\-m@{samplecond\_\-m}} |
---|
| 186 | \index{samplecond\_\-m@{samplecond\_\-m}!bdm::mlstudent@{bdm::mlstudent}} |
---|
| 187 | \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{]}}}} |
---|
| 188 | \label{classbdm_1_1mpdf_ee26963a637b2ea1fb1933652981e652} |
---|
| 189 | |
---|
| 190 | |
---|
| 191 | Returns. |
---|
| 192 | |
---|
| 193 | \begin{Desc} |
---|
| 194 | \item[Parameters:] |
---|
| 195 | \begin{description} |
---|
| 196 | \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} |
---|
| 197 | \end{Desc} |
---|
| 198 | |
---|
| 199 | |
---|
| 200 | References bdm::mpdf::condition(), bdm::RV::count(), bdm::mpdf::ep, bdm::epdf::evallog(), bdm::mpdf::rv, and bdm::epdf::sample(). |
---|
| 201 | |
---|
| 202 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
| 203 | \item |
---|
| 204 | \hyperlink{libEF_8h}{libEF.h}\end{CompactItemize} |
---|