32 | | \hypertarget{classemix_d3789d50a3327a6de552db077af5e4c5}{ |
33 | | void \hyperlink{classemix_d3789d50a3327a6de552db077af5e4c5}{set\_\-parameters} (const vec \&\hyperlink{classemix_cdc8f4e2a5e43595ac5450d8a7f9d1ab}{w}, const Array$<$ \hyperlink{classepdf}{epdf} $\ast$ $>$ \&\hyperlink{classemix_7155d827417b53fb6aa5cff1459e6eb4}{Coms}, bool copy=true)} |
34 | | \label{classemix_d3789d50a3327a6de552db077af5e4c5} |
35 | | |
36 | | \begin{CompactList}\small\item\em Set weights {\tt w} and components {\tt Coms} , Coms are not copied! \item\end{CompactList}\item |
| 32 | void \hyperlink{classemix_d3789d50a3327a6de552db077af5e4c5}{set\_\-parameters} (const vec \&\hyperlink{classemix_cdc8f4e2a5e43595ac5450d8a7f9d1ab}{w}, const Array$<$ \hyperlink{classepdf}{epdf} $\ast$ $>$ \&\hyperlink{classemix_7155d827417b53fb6aa5cff1459e6eb4}{Coms}, bool copy=true) |
| 33 | \item |
| 49 | \hypertarget{classemix_375bfba7c79915c88c2e612bcf83dacb}{ |
| 50 | vec \hyperlink{classemix_375bfba7c79915c88c2e612bcf83dacb}{evalpdflog\_\-m} (const mat \&Val) const } |
| 51 | \label{classemix_375bfba7c79915c88c2e612bcf83dacb} |
| 52 | |
| 53 | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
| 54 | \hypertarget{classemix_07b5638de45d1fe83eb4da37594fcc68}{ |
| 55 | mat \textbf{evalpdflog\_\-M} (const mat \&Val) const } |
| 56 | \label{classemix_07b5638de45d1fe83eb4da37594fcc68} |
| 57 | |
| 58 | \item |
| 59 | \hypertarget{classemix_33afde698093d458ce71875f7ee7384a}{ |
| 60 | \hyperlink{classemix}{emix} $\ast$ \hyperlink{classemix_33afde698093d458ce71875f7ee7384a}{marginal} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const } |
| 61 | \label{classemix_33afde698093d458ce71875f7ee7384a} |
| 62 | |
| 63 | \begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classRV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\item |
| 64 | \hypertarget{classemix_ebf50c387034f72040c83d38738549b3}{ |
| 65 | \hyperlink{classmratio}{mratio} $\ast$ \hyperlink{classemix_ebf50c387034f72040c83d38738549b3}{condition} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv}) const } |
| 66 | \label{classemix_ebf50c387034f72040c83d38738549b3} |
| 67 | |
| 68 | \begin{CompactList}\small\item\em Return conditional density on the given \hyperlink{classRV}{RV}, the remaining rvs will be in conditioning. \item\end{CompactList}\item |
62 | | \hypertarget{classepdf_54d7dd53a641b618771cd9bee135181f}{ |
63 | | virtual mat \hyperlink{classepdf_54d7dd53a641b618771cd9bee135181f}{sampleN} (int N) const } |
64 | | \label{classepdf_54d7dd53a641b618771cd9bee135181f} |
| 79 | \hypertarget{classemix_95d175b2daa1d896ceffd69b70e02efb}{ |
| 80 | \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classemix_95d175b2daa1d896ceffd69b70e02efb}{\_\-Coms} (int i)} |
| 81 | \label{classemix_95d175b2daa1d896ceffd69b70e02efb} |
| 82 | |
| 83 | \begin{CompactList}\small\item\em access function \item\end{CompactList}\item |
| 84 | \hypertarget{classepdf_76608914c3b19e150292d5c56e93e508}{ |
| 85 | virtual mat \hyperlink{classepdf_76608914c3b19e150292d5c56e93e508}{sample\_\-m} (int N) const } |
| 86 | \label{classepdf_76608914c3b19e150292d5c56e93e508} |
67 | | \hypertarget{classepdf_3ea597362e11a0040fe7c990269d072c}{ |
68 | | virtual double \hyperlink{classepdf_3ea597362e11a0040fe7c990269d072c}{eval} (const vec \&val) const } |
69 | | \label{classepdf_3ea597362e11a0040fe7c990269d072c} |
70 | | |
71 | | \begin{CompactList}\small\item\em Compute probability of argument {\tt val}. \item\end{CompactList}\item |
72 | | \hypertarget{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{ |
73 | | virtual vec \hyperlink{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c}{evalpdflog\_\-m} (const mat \&Val) const } |
74 | | \label{classepdf_cebbdd7a85e6328f7358fc0ba8eee06c} |
75 | | |
76 | | \begin{CompactList}\small\item\em Compute log-probability of multiple values argument {\tt val}. \item\end{CompactList}\item |
77 | | \hypertarget{classepdf_3ba08c0e788deff22134c049b9269666}{ |
78 | | \hyperlink{classmpdf}{mpdf} $\ast$ \hyperlink{classepdf_3ba08c0e788deff22134c049b9269666}{condition} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})} |
79 | | \label{classepdf_3ba08c0e788deff22134c049b9269666} |
80 | | |
81 | | \begin{CompactList}\small\item\em Return conditional density on the given \hyperlink{classRV}{RV}, the remaining rvs will be in conditioning. \item\end{CompactList}\item |
82 | | \hypertarget{classepdf_bc0c171b6dafacd78d26263913b1d0c0}{ |
83 | | \hyperlink{classepdf}{epdf} $\ast$ \hyperlink{classepdf_bc0c171b6dafacd78d26263913b1d0c0}{marginal} (const \hyperlink{classRV}{RV} \&\hyperlink{classepdf_74da992e3f5d598da8850b646b79b9d9}{rv})} |
84 | | \label{classepdf_bc0c171b6dafacd78d26263913b1d0c0} |
85 | | |
86 | | \begin{CompactList}\small\item\em Return marginal density on the given \hyperlink{classRV}{RV}, the remainig rvs are intergrated out. \item\end{CompactList}\item |
| 129 | \subsection{Member Function Documentation} |
| 130 | \hypertarget{classemix_d3789d50a3327a6de552db077af5e4c5}{ |
| 131 | \index{emix@{emix}!set\_\-parameters@{set\_\-parameters}} |
| 132 | \index{set\_\-parameters@{set\_\-parameters}!emix@{emix}} |
| 133 | \subsubsection[set\_\-parameters]{\setlength{\rightskip}{0pt plus 5cm}void emix::set\_\-parameters (const vec \& {\em w}, \/ const Array$<$ {\bf epdf} $\ast$ $>$ \& {\em Coms}, \/ bool {\em copy} = {\tt true})}} |
| 134 | \label{classemix_d3789d50a3327a6de552db077af5e4c5} |
| 135 | |
| 136 | |
| 137 | Set weights {\tt w} and components {\tt Coms} By default Coms are copied inside. \begin{Desc} |
| 138 | \item[Parameters:] |
| 139 | \begin{description} |
| 140 | \item[{\em copy}]can be set to false if Coms live externally. Use method \hyperlink{classemix_4d7baeb2a9e3fca1d8fd32a107df291d}{ownComs()} if Coms should be destroyed by the destructor. \end{description} |
| 141 | \end{Desc} |
| 142 | |
| 143 | |
| 144 | References epdf::\_\-rv(), Coms, destroyComs, RV::equal(), epdf::rv, and w. |
| 145 | |
| 146 | Referenced by marginal(), MixEF::predictor(), and mmix::set\_\-parameters(). |
| 147 | |