1 | \hypertarget{classmlnorm}{ |
---|
2 | \section{mlnorm$<$ sq\_\-T $>$ Class Template Reference} |
---|
3 | \label{classmlnorm}\index{mlnorm@{mlnorm}} |
---|
4 | } |
---|
5 | Normal distributed linear function with linear function of mean value;. |
---|
6 | |
---|
7 | |
---|
8 | {\tt \#include $<$libEF.h$>$} |
---|
9 | |
---|
10 | Inheritance diagram for mlnorm$<$ sq\_\-T $>$:\nopagebreak |
---|
11 | \begin{figure}[H] |
---|
12 | \begin{center} |
---|
13 | \leavevmode |
---|
14 | \includegraphics[width=74pt]{classmlnorm__inherit__graph} |
---|
15 | \end{center} |
---|
16 | \end{figure} |
---|
17 | Collaboration diagram for mlnorm$<$ sq\_\-T $>$:\nopagebreak |
---|
18 | \begin{figure}[H] |
---|
19 | \begin{center} |
---|
20 | \leavevmode |
---|
21 | \includegraphics[width=68pt]{classmlnorm__coll__graph} |
---|
22 | \end{center} |
---|
23 | \end{figure} |
---|
24 | \subsection*{Public Member Functions} |
---|
25 | \begin{CompactItemize} |
---|
26 | \item |
---|
27 | \hypertarget{classmlnorm_3a5ad4798d8a3878c5e93b8e796c8837}{ |
---|
28 | \hyperlink{classmlnorm_3a5ad4798d8a3878c5e93b8e796c8837}{mlnorm} (const \hyperlink{classRV}{RV} \&\hyperlink{classmpdf_f6687c07ff07d47812dd565368ca59eb}{rv}, const \hyperlink{classRV}{RV} \&\hyperlink{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{rvc})} |
---|
29 | \label{classmlnorm_3a5ad4798d8a3878c5e93b8e796c8837} |
---|
30 | |
---|
31 | \begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item |
---|
32 | \hypertarget{classmlnorm_f95dfce0b500636a44ecd7e5210de999}{ |
---|
33 | void \hyperlink{classmlnorm_f95dfce0b500636a44ecd7e5210de999}{set\_\-parameters} (const mat \&A, const vec \&mu0, const sq\_\-T \&R)} |
---|
34 | \label{classmlnorm_f95dfce0b500636a44ecd7e5210de999} |
---|
35 | |
---|
36 | \begin{CompactList}\small\item\em Set {\tt A} and {\tt R}. \item\end{CompactList}\item |
---|
37 | \hypertarget{classmlnorm_d41126455ac64b888a38f677886e1b40}{ |
---|
38 | void \hyperlink{classmlnorm_d41126455ac64b888a38f677886e1b40}{condition} (const vec \&cond)} |
---|
39 | \label{classmlnorm_d41126455ac64b888a38f677886e1b40} |
---|
40 | |
---|
41 | \begin{CompactList}\small\item\em Set value of {\tt rvc} . Result of this operation is stored in {\tt \hyperlink{classepdf}{epdf}} use function {\tt \_\-ep} to access it. \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_b1dae6171ee39a6a05976c7b1007a3c5}{samplecond\_\-m} (const vec \&cond, vec \&ll, int N) |
---|
60 | \begin{CompactList}\small\item\em Returns. \item\end{CompactList}\item |
---|
61 | \hypertarget{classmpdf_2ef8a6374029d990a678782f6decebbe}{ |
---|
62 | virtual double \hyperlink{classmpdf_2ef8a6374029d990a678782f6decebbe}{evallogcond} (const vec \&dt, const vec \&cond)} |
---|
63 | \label{classmpdf_2ef8a6374029d990a678782f6decebbe} |
---|
64 | |
---|
65 | \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 |
---|
66 | \hypertarget{classmpdf_95fcff214848f66f1b489459370573fa}{ |
---|
67 | virtual vec \hyperlink{classmpdf_95fcff214848f66f1b489459370573fa}{evallogcond\_\-m} (const mat \&Dt, const vec \&cond)} |
---|
68 | \label{classmpdf_95fcff214848f66f1b489459370573fa} |
---|
69 | |
---|
70 | \begin{CompactList}\small\item\em Matrix version of evallogcond. \item\end{CompactList}\item |
---|
71 | \hypertarget{classmpdf_15ef062183b1ccdf794732d5fa0b77cd}{ |
---|
72 | \hyperlink{classRV}{RV} \hyperlink{classmpdf_15ef062183b1ccdf794732d5fa0b77cd}{\_\-rvc} () const } |
---|
73 | \label{classmpdf_15ef062183b1ccdf794732d5fa0b77cd} |
---|
74 | |
---|
75 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
76 | \hypertarget{classmpdf_71256ffb5fbd08f41d650e606a5bd585}{ |
---|
77 | \hyperlink{classRV}{RV} \hyperlink{classmpdf_71256ffb5fbd08f41d650e606a5bd585}{\_\-rv} () const } |
---|
78 | \label{classmpdf_71256ffb5fbd08f41d650e606a5bd585} |
---|
79 | |
---|
80 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
---|
81 | \hypertarget{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}{ |
---|
82 | \hyperlink{classepdf}{epdf} \& \hyperlink{classmpdf_e17780ee5b2cfe05922a6c56af1462f8}{\_\-epdf} ()} |
---|
83 | \label{classmpdf_e17780ee5b2cfe05922a6c56af1462f8} |
---|
84 | |
---|
85 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\end{CompactItemize} |
---|
86 | \subsection*{Protected Attributes} |
---|
87 | \begin{CompactItemize} |
---|
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 | |
---|
108 | \item |
---|
109 | \hypertarget{classmpdf_f6687c07ff07d47812dd565368ca59eb}{ |
---|
110 | \hyperlink{classRV}{RV} \hyperlink{classmpdf_f6687c07ff07d47812dd565368ca59eb}{rv}} |
---|
111 | \label{classmpdf_f6687c07ff07d47812dd565368ca59eb} |
---|
112 | |
---|
113 | \begin{CompactList}\small\item\em modeled random variable \item\end{CompactList}\item |
---|
114 | \hypertarget{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{ |
---|
115 | \hyperlink{classRV}{RV} \hyperlink{classmpdf_acb7dda792b3cd5576f39fa3129abbab}{rvc}} |
---|
116 | \label{classmpdf_acb7dda792b3cd5576f39fa3129abbab} |
---|
117 | |
---|
118 | \begin{CompactList}\small\item\em random variable in condition \item\end{CompactList}\item |
---|
119 | \hypertarget{classmpdf_7aa894208a32f3487827df6d5054424c}{ |
---|
120 | \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classmpdf_7aa894208a32f3487827df6d5054424c}{ep}} |
---|
121 | \label{classmpdf_7aa894208a32f3487827df6d5054424c} |
---|
122 | |
---|
123 | \begin{CompactList}\small\item\em pointer to internal \hyperlink{classepdf}{epdf} \item\end{CompactList}\end{CompactItemize} |
---|
124 | \subsection*{Friends} |
---|
125 | \begin{CompactItemize} |
---|
126 | \item |
---|
127 | \hypertarget{classmlnorm_1917009347bb410f73bf827df8767b09}{ |
---|
128 | {\footnotesize template$<$class sq\_\-M$>$ }\\std::ostream \& \textbf{operator$<$$<$} (std::ostream \&os, \hyperlink{classmlnorm}{mlnorm}$<$ sq\_\-M $>$ \&ml)} |
---|
129 | \label{classmlnorm_1917009347bb410f73bf827df8767b09} |
---|
130 | |
---|
131 | \end{CompactItemize} |
---|
132 | |
---|
133 | |
---|
134 | \subsection{Detailed Description} |
---|
135 | \subsubsection*{template$<$class sq\_\-T$>$ class mlnorm$<$ sq\_\-T $>$} |
---|
136 | |
---|
137 | Normal distributed linear function with linear function of mean value;. |
---|
138 | |
---|
139 | Mean value $mu=A*rvc+mu_0$. |
---|
140 | |
---|
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::evallog(), and epdf::sample(). |
---|
161 | |
---|
162 | Referenced by MPF$<$ BM\_\-T $>$::bayes(), and PF::bayes().\hypertarget{classmpdf_b1dae6171ee39a6a05976c7b1007a3c5}{ |
---|
163 | \index{mlnorm@{mlnorm}!samplecond\_\-m@{samplecond\_\-m}} |
---|
164 | \index{samplecond\_\-m@{samplecond\_\-m}!mlnorm@{mlnorm}} |
---|
165 | \subsubsection[samplecond\_\-m]{\setlength{\rightskip}{0pt plus 5cm}virtual mat mpdf::samplecond\_\-m (const vec \& {\em cond}, \/ vec \& {\em ll}, \/ int {\em N})\hspace{0.3cm}{\tt \mbox{[}inline, virtual, inherited\mbox{]}}}} |
---|
166 | \label{classmpdf_b1dae6171ee39a6a05976c7b1007a3c5} |
---|
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 | References mpdf::condition(), RV::count(), mpdf::ep, epdf::evallog(), mpdf::rv, and epdf::sample(). |
---|
179 | |
---|
180 | The documentation for this class was generated from the following file:\begin{CompactItemize} |
---|
181 | \item |
---|
182 | work/git/mixpp/bdm/stat/\hyperlink{libEF_8h}{libEF.h}\end{CompactItemize} |
---|