Show
Ignore:
Timestamp:
10/12/09 13:49:39 (15 years ago)
Author:
mido
Message:

\doc directory cleaned a bit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/html/classbdm_1_1egrid.html

    r641 r651  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    2 <html xmlns="http://www.w3.org/1999/xhtml"> 
    3 <head> 
    4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
     2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
    53<title>mixpp: bdm::egrid Class Reference</title> 
    6 <link href="tabs.css" rel="stylesheet" type="text/css"/> 
    7 <link href="doxygen.css" rel="stylesheet" type="text/css"/> 
    8 </head> 
    9 <body> 
    10 <!-- Generated by Doxygen 1.6.1 --> 
     4<link href="tabs.css" rel="stylesheet" type="text/css"> 
     5<link href="doxygen.css" rel="stylesheet" type="text/css"> 
     6</head><body> 
     7<!-- Generated by Doxygen 1.5.9 --> 
    118<script type="text/javascript"> 
    129<!-- 
     
    7168</div> 
    7269<div class="contents"> 
    73 <h1>bdm::egrid Class Reference</h1><!-- doxytag: class="bdm::egrid" --><!-- doxytag: inherits="bdm::epdf" --><hr/><a name="_details"></a><h2>Detailed Description</h2> 
    74 <p>Piecewise constant pdf on rectangular support Each point on the grid represents a centroid around which the density is constant. This is a trivial point-mass density where all points have the same mass. </p> 
    75  
    76 <p><code>#include &lt;<a class="el" href="discrete_8h_source.html">discrete.h</a>&gt;</code></p> 
    77  
    78 <p><a href="classbdm_1_1egrid-members.html">List of all members.</a></p> 
    79 <table border="0" cellpadding="0" cellspacing="0"> 
    80 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> 
    81 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a9f0d4f725b189b08990c5997aa57ae"></a><!-- doxytag: member="bdm::egrid::evallog" ref="a3a9f0d4f725b189b08990c5997aa57ae" args="(const vec &amp;val)" --> 
    82 double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egrid.html#a3a9f0d4f725b189b08990c5997aa57ae">evallog</a> (const vec &amp;val)</td></tr> 
    83 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">we assume that evallog is not called too often otherwise we should cache log(values) <br/></td></tr> 
    84 <tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#afa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &amp;set)</td></tr> 
    85 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load from structure with elements:.  <a href="#afa9efc98a065b31c630fe18cc418f725"></a><br/></td></tr> 
    86 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egrid::to_string" ref="aaf0e6941ba5919cae1bc530e2181b109" args="()" --> 
    87 virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#aaf0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> 
    88 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method returns a basic info about the current instance. <br/></td></tr> 
    89 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::egrid::to_setting" ref="a67d954d255ede776eade7334d4895790" args="(Setting &amp;set) const " --> 
    90 virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a67d954d255ede776eade7334d4895790">to_setting</a> (Setting &amp;set) const </td></tr> 
    91 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br/></td></tr> 
    92 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egrid::validate" ref="a1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> 
    93 virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#a1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> 
    94 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method TODO. <br/></td></tr> 
     70<h1>bdm::egrid Class Reference</h1><!-- doxytag: class="bdm::egrid" --><!-- doxytag: inherits="bdm::epdf" --><code>#include &lt;<a class="el" href="discrete_8h_source.html">discrete.h</a>&gt;</code> 
     71<p> 
     72 
     73<p> 
     74<a href="classbdm_1_1egrid-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> 
     75<tr><td></td></tr> 
     76<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> 
     77<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3a9f0d4f725b189b08990c5997aa57ae"></a><!-- doxytag: member="bdm::egrid::evallog" ref="3a9f0d4f725b189b08990c5997aa57ae" args="(const vec &amp;val)" --> 
     78double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1egrid.html#3a9f0d4f725b189b08990c5997aa57ae">evallog</a> (const vec &amp;val)</td></tr> 
     79 
     80<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">we assume that evallog is not called too often otherwise we should cache log(values) <br></td></tr> 
     81<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#fa9efc98a065b31c630fe18cc418f725">from_setting</a> (const Setting &amp;set)</td></tr> 
     82 
     83<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load from structure with elements:.  <a href="#fa9efc98a065b31c630fe18cc418f725"></a><br></td></tr> 
     84<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af0e6941ba5919cae1bc530e2181b109"></a><!-- doxytag: member="bdm::egrid::to_string" ref="af0e6941ba5919cae1bc530e2181b109" args="()" --> 
     85virtual string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#af0e6941ba5919cae1bc530e2181b109">to_string</a> ()</td></tr> 
     86 
     87<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method returns a basic info about the current instance. <br></td></tr> 
     88<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d954d255ede776eade7334d4895790"></a><!-- doxytag: member="bdm::egrid::to_setting" ref="67d954d255ede776eade7334d4895790" args="(Setting &amp;set) const " --> 
     89virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#67d954d255ede776eade7334d4895790">to_setting</a> (Setting &amp;set) const </td></tr> 
     90 
     91<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method save all the instance properties into the Setting structure. <br></td></tr> 
     92<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1c314bd6d6dacb8ba78ea5eb88fd9516"></a><!-- doxytag: member="bdm::egrid::validate" ref="1c314bd6d6dacb8ba78ea5eb88fd9516" args="()" --> 
     93virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1root.html#1c314bd6d6dacb8ba78ea5eb88fd9516">validate</a> ()</td></tr> 
     94 
     95<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method TODO. <br></td></tr> 
    9596<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> 
    96 <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp559a25fdb98a7d1fd1c3771ac568d5e9"></a> Construction of each <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> should support two types of constructors: </p> 
    97 <ul> 
     97<tr><td colspan="2"><div class="groupText">Construction of each <a class="el" href="classbdm_1_1epdf.html" title="Probability density function with numerical statistics, e.g. posterior density.">epdf</a> should support two types of constructors: <ul> 
    9898<li>empty constructor, </li> 
    9999<li>copy constructor,</li> 
    100100</ul> 
    101 <p>The following constructors should be supported for convenience: </p> 
    102 <ul> 
     101The following constructors should be supported for convenience: <ul> 
    103102<li>constructor followed by calling <code>set_parameters()</code> </li> 
    104 <li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv()</a></code> </li> 
     103<li>constructor accepting random variables calling <code><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff" title="Name its rv.">set_rv()</a></code> </li> 
    105104</ul> 
    106 <p>All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code>set_parameters()</code>. This way references can be initialized in constructors. </p> 
    107 <br/><br/></div></td></tr> 
    108 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::egrid::set_parameters" ref="a840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> 
     105All internal data structures are constructed as empty. Their values (including sizes) will be set by method <code>set_parameters()</code>. This way references can be initialized in constructors. <br><br></div></td></tr> 
     106<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="840de94aa33cf4f2ebd2427f45a165d8"></a><!-- doxytag: member="bdm::egrid::set_parameters" ref="840de94aa33cf4f2ebd2427f45a165d8" args="(int dim0)" --> 
    109107void&nbsp;</td><td class="memItemRight" valign="bottom"><b>set_parameters</b> (int dim0)</td></tr> 
     108 
    110109<tr><td colspan="2"><div class="groupHeader">Matematical Operations</div></td></tr> 
    111 <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp96552c993870a5dd6bb0ea321f1ceb78"></a> </p> 
    112 <br/><br/></div></td></tr> 
    113 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75ba57a89681a8efec488f5796c7cc1b"></a><!-- doxytag: member="bdm::egrid::sample" ref="a75ba57a89681a8efec488f5796c7cc1b" args="() const " --> 
    114 virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a75ba57a89681a8efec488f5796c7cc1b">sample</a> () const </td></tr> 
    115 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_3.png"/> from density <img class="formulaInl" alt="$ f_x()$" src="form_13.png"/>. <br/></td></tr> 
    116 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::egrid::sample_m" ref="ab4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> 
    117 virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ab4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> 
    118 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_14.png"/> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_15.png"/>. <br/></td></tr> 
    119 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adeab266d63c236c277538867d5c3f249"></a><!-- doxytag: member="bdm::egrid::evallog" ref="adeab266d63c236c277538867d5c3f249" args="(const vec &amp;val) const " --> 
    120 virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#adeab266d63c236c277538867d5c3f249">evallog</a> (const vec &amp;val) const </td></tr> 
    121 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity. <br/></td></tr> 
    122 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad08b68a5abd461f1b6519597e344caf8"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="ad08b68a5abd461f1b6519597e344caf8" args="(const mat &amp;Val) const " --> 
    123 virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ad08b68a5abd461f1b6519597e344caf8">evallog_m</a> (const mat &amp;Val) const </td></tr> 
    124 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> 
    125 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="a9bc02dae61584138443baf6b1cbc1ac9" args="(const Array&lt; vec &gt; &amp;Avec) const " --> 
    126 virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array&lt; vec &gt; &amp;Avec) const </td></tr> 
    127 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br/></td></tr> 
    128 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::egrid::condition" ref="a1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &amp;rv) const " --> 
    129 virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a1499d35b79bce0cfa64fc5cafb9c03b2">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> 
    130 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return conditional density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br/></td></tr> 
    131 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::egrid::marginal" ref="aa84b05f5293cab2aeb4e07faffa60906" args="(const RV &amp;rv) const " --> 
    132 virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#aa84b05f5293cab2aeb4e07faffa60906">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> 
    133 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return marginal density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br/></td></tr> 
    134 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c8d13d788094605b3cdab20a6e22b75"></a><!-- doxytag: member="bdm::egrid::mean" ref="a0c8d13d788094605b3cdab20a6e22b75" args="() const " --> 
    135 virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a0c8d13d788094605b3cdab20a6e22b75">mean</a> () const </td></tr> 
    136 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br/></td></tr> 
    137 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4543d40ccfc5d549b0c831a57a3ed84c"></a><!-- doxytag: member="bdm::egrid::variance" ref="a4543d40ccfc5d549b0c831a57a3ed84c" args="() const " --> 
    138 virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4543d40ccfc5d549b0c831a57a3ed84c">variance</a> () const </td></tr> 
    139 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected variance (not covariance!) <br/></td></tr> 
    140 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::egrid::qbounds" ref="a0a7705e80601957f7226d333a0a6d539" args="(vec &amp;lb, vec &amp;ub, double percentage=0.95) const " --> 
    141 virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &amp;lb, vec &amp;ub, double percentage=0.95) const </td></tr> 
    142 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br/></td></tr> 
     110<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75ba57a89681a8efec488f5796c7cc1b"></a><!-- doxytag: member="bdm::egrid::sample" ref="75ba57a89681a8efec488f5796c7cc1b" args="() const " --> 
     111virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#75ba57a89681a8efec488f5796c7cc1b">sample</a> () const </td></tr> 
     112 
     113<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a sample, <img class="formulaInl" alt="$ x $" src="form_3.png"> from density <img class="formulaInl" alt="$ f_x()$" src="form_13.png">. <br></td></tr> 
     114<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b4cf45fd83cc7573ede9fe1215256058"></a><!-- doxytag: member="bdm::egrid::sample_m" ref="b4cf45fd83cc7573ede9fe1215256058" args="(int N) const " --> 
     115virtual mat&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#b4cf45fd83cc7573ede9fe1215256058">sample_m</a> (int N) const </td></tr> 
     116 
     117<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns N samples, <img class="formulaInl" alt="$ [x_1 , x_2 , \ldots \ $" src="form_14.png"> from density <img class="formulaInl" alt="$ f_x(rv)$" src="form_15.png">. <br></td></tr> 
     118<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="deab266d63c236c277538867d5c3f249"></a><!-- doxytag: member="bdm::egrid::evallog" ref="deab266d63c236c277538867d5c3f249" args="(const vec &amp;val) const " --> 
     119virtual double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#deab266d63c236c277538867d5c3f249">evallog</a> (const vec &amp;val) const </td></tr> 
     120 
     121<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of argument <code>val</code> In case the argument is out of suport return -Infinity. <br></td></tr> 
     122<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d08b68a5abd461f1b6519597e344caf8"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="d08b68a5abd461f1b6519597e344caf8" args="(const mat &amp;Val) const " --> 
     123virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#d08b68a5abd461f1b6519597e344caf8">evallog_m</a> (const mat &amp;Val) const </td></tr> 
     124 
     125<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> 
     126<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bc02dae61584138443baf6b1cbc1ac9"></a><!-- doxytag: member="bdm::egrid::evallog_m" ref="9bc02dae61584138443baf6b1cbc1ac9" args="(const Array&lt; vec &gt; &amp;Avec) const " --> 
     127virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#9bc02dae61584138443baf6b1cbc1ac9">evallog_m</a> (const Array&lt; vec &gt; &amp;Avec) const </td></tr> 
     128 
     129<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute log-probability of multiple values argument <code>val</code>. <br></td></tr> 
     130<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1499d35b79bce0cfa64fc5cafb9c03b2"></a><!-- doxytag: member="bdm::egrid::condition" ref="1499d35b79bce0cfa64fc5cafb9c03b2" args="(const RV &amp;rv) const " --> 
     131virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1mpdf.html">mpdf</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#1499d35b79bce0cfa64fc5cafb9c03b2">condition</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> 
     132 
     133<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return conditional density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remaining rvs will be in conditioning. <br></td></tr> 
     134<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a84b05f5293cab2aeb4e07faffa60906"></a><!-- doxytag: member="bdm::egrid::marginal" ref="a84b05f5293cab2aeb4e07faffa60906" args="(const RV &amp;rv) const " --> 
     135virtual <a class="el" href="classbdm_1_1shared__ptr.html">shared_ptr</a>&lt; <a class="el" href="classbdm_1_1epdf.html">epdf</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a84b05f5293cab2aeb4e07faffa60906">marginal</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;<a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a>) const </td></tr> 
     136 
     137<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return marginal density on the given <a class="el" href="classbdm_1_1RV.html" title="Class representing variables, most often random variables.">RV</a>, the remainig rvs are intergrated out. <br></td></tr> 
     138<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0c8d13d788094605b3cdab20a6e22b75"></a><!-- doxytag: member="bdm::egrid::mean" ref="0c8d13d788094605b3cdab20a6e22b75" args="() const " --> 
     139virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#0c8d13d788094605b3cdab20a6e22b75">mean</a> () const </td></tr> 
     140 
     141<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected value <br></td></tr> 
     142<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4543d40ccfc5d549b0c831a57a3ed84c"></a><!-- doxytag: member="bdm::egrid::variance" ref="4543d40ccfc5d549b0c831a57a3ed84c" args="() const " --> 
     143virtual vec&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#4543d40ccfc5d549b0c831a57a3ed84c">variance</a> () const </td></tr> 
     144 
     145<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">return expected variance (not covariance!) <br></td></tr> 
     146<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0a7705e80601957f7226d333a0a6d539"></a><!-- doxytag: member="bdm::egrid::qbounds" ref="0a7705e80601957f7226d333a0a6d539" args="(vec &amp;lb, vec &amp;ub, double percentage=0.95) const " --> 
     147virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#0a7705e80601957f7226d333a0a6d539">qbounds</a> (vec &amp;lb, vec &amp;ub, double percentage=0.95) const </td></tr> 
     148 
     149<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lower and upper bounds of <code>percentage</code> % quantile, returns mean-2*sigma as default. <br></td></tr> 
    143150<tr><td colspan="2"><div class="groupHeader">Connection to other classes</div></td></tr> 
    144 <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp14fc6e1cb822e9dfc5edc16c20fabe11"></a>Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: </p> 
    145 <br/><br/></div></td></tr> 
    146 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::egrid::set_rv" ref="af423e28448dbb69ef4905295ec8de8ff" args="(const RV &amp;rv0)" --> 
    147 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#af423e28448dbb69ef4905295ec8de8ff">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rv0)</td></tr> 
    148 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Name its rv. <br/></td></tr> 
    149 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::egrid::isnamed" ref="ac4b863ff84c7a4882fb3ad18556027f9" args="() const " --> 
    150 bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#ac4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> 
    151 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if rv is assigned. <br/></td></tr> 
    152 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::egrid::_rv" ref="aa4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> 
    153 const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#aa4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> 
    154 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return name (fails when isnamed is false). <br/></td></tr> 
     151<tr><td colspan="2"><div class="groupText">Description of the random quantity via attribute <code>rv</code> is optional. For operations such as sampling <code>rv</code> does not need to be set. However, for <code>marginalization</code> and <code>conditioning</code> <code>rv</code> has to be set. NB: <br><br></div></td></tr> 
     152<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f423e28448dbb69ef4905295ec8de8ff"></a><!-- doxytag: member="bdm::egrid::set_rv" ref="f423e28448dbb69ef4905295ec8de8ff" args="(const RV &amp;rv0)" --> 
     153void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#f423e28448dbb69ef4905295ec8de8ff">set_rv</a> (const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;rv0)</td></tr> 
     154 
     155<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Name its rv. <br></td></tr> 
     156<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4b863ff84c7a4882fb3ad18556027f9"></a><!-- doxytag: member="bdm::egrid::isnamed" ref="c4b863ff84c7a4882fb3ad18556027f9" args="() const " --> 
     157bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#c4b863ff84c7a4882fb3ad18556027f9">isnamed</a> () const </td></tr> 
     158 
     159<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">True if rv is assigned. <br></td></tr> 
     160<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4ab378d5e004c3ff3e2d4e64f7bba21"></a><!-- doxytag: member="bdm::egrid::_rv" ref="a4ab378d5e004c3ff3e2d4e64f7bba21" args="() const " --> 
     161const <a class="el" href="classbdm_1_1RV.html">RV</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a4ab378d5e004c3ff3e2d4e64f7bba21">_rv</a> () const </td></tr> 
     162 
     163<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return name (fails when isnamed is false). <br></td></tr> 
    155164<tr><td colspan="2"><div class="groupHeader">Access to attributes</div></td></tr> 
    156 <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrpb6eb094f9e6af11f8a7d9efa9d8e3623"></a> </p> 
    157 <br/><br/></div></td></tr> 
    158 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::egrid::dimension" ref="a7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> 
    159 int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> 
    160 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Size of the random variable. <br/></td></tr> 
    161 <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr> 
    162 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15f195f36f489a4856bcb7c56ef50c4c"></a><!-- doxytag: member="bdm::egrid::sup" ref="a15f195f36f489a4856bcb7c56ef50c4c" args="" --> 
     165<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7083a65f7b7a0d0d13b2c516bd2ec29c"></a><!-- doxytag: member="bdm::egrid::dimension" ref="7083a65f7b7a0d0d13b2c516bd2ec29c" args="() const " --> 
     166int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#7083a65f7b7a0d0d13b2c516bd2ec29c">dimension</a> () const </td></tr> 
     167 
     168<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Size of the random variable. <br></td></tr> 
     169<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> 
     170<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="15f195f36f489a4856bcb7c56ef50c4c"></a><!-- doxytag: member="bdm::egrid::sup" ref="15f195f36f489a4856bcb7c56ef50c4c" args="" --> 
    163171<a class="el" href="classbdm_1_1rectangular__support.html">rectangular_support</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>sup</b></td></tr> 
    164 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e2bd7bcd849ac8e90cca062eeb4150f"></a><!-- doxytag: member="bdm::egrid::values" ref="a6e2bd7bcd849ac8e90cca062eeb4150f" args="" --> 
     172 
     173<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6e2bd7bcd849ac8e90cca062eeb4150f"></a><!-- doxytag: member="bdm::egrid::values" ref="6e2bd7bcd849ac8e90cca062eeb4150f" args="" --> 
    165174vec&nbsp;</td><td class="memItemRight" valign="bottom"><b>values</b></td></tr> 
    166 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::egrid::dim" ref="a16adac20ec7fe07e1ea0b27d917788ce" args="" --> 
    167 int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> 
    168 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dimension of the random variable <br/></td></tr> 
    169 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::egrid::rv" ref="a62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> 
    170 <a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> 
    171 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Description of the random variable. <br/></td></tr> 
     175 
     176<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16adac20ec7fe07e1ea0b27d917788ce"></a><!-- doxytag: member="bdm::egrid::dim" ref="16adac20ec7fe07e1ea0b27d917788ce" args="" --> 
     177int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#16adac20ec7fe07e1ea0b27d917788ce">dim</a></td></tr> 
     178 
     179<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">dimension of the random variable <br></td></tr> 
     180<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62c5b8ff71d9ebe6cd58d3c342eb1dc8"></a><!-- doxytag: member="bdm::egrid::rv" ref="62c5b8ff71d9ebe6cd58d3c342eb1dc8" args="" --> 
     181<a class="el" href="classbdm_1_1RV.html">RV</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8">rv</a></td></tr> 
     182 
     183<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Description of the random variable. <br></td></tr> 
    172184</table> 
    173 <hr/><h2>Member Function Documentation</h2> 
    174 <a class="anchor" id="afa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::egrid::from_setting" ref="afa9efc98a065b31c630fe18cc418f725" args="(const Setting &amp;set)" --> 
     185<hr><a name="_details"></a><h2>Detailed Description</h2> 
     186Piecewise constant pdf on rectangular support Each point on the grid represents a centroid around which the density is constant. This is a trivial point-mass density where all points have the same mass. <hr><h2>Member Function Documentation</h2> 
     187<a class="anchor" name="fa9efc98a065b31c630fe18cc418f725"></a><!-- doxytag: member="bdm::egrid::from_setting" ref="fa9efc98a065b31c630fe18cc418f725" args="(const Setting &amp;set)" --> 
    175188<div class="memitem"> 
    176189<div class="memproto"> 
    177190      <table class="memname"> 
    178191        <tr> 
    179           <td class="memname">void bdm::epdf::from_setting </td> 
     192          <td class="memname">void bdm::epdf::from_setting           </td> 
    180193          <td>(</td> 
    181194          <td class="paramtype">const Setting &amp;&nbsp;</td> 
    182           <td class="paramname"> <em>set</em></td> 
     195          <td class="paramname"> <em>set</em>          </td> 
    183196          <td>&nbsp;)&nbsp;</td> 
    184197          <td><code> [inline, virtual, inherited]</code></td> 
     
    188201<div class="memdoc"> 
    189202 
    190 <p>Load from structure with elements:. </p> 
    191 <div class="fragment"><pre class="fragment">         { <a class="code" href="classbdm_1_1epdf.html#a62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">&quot;RV&quot;</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> 
     203<p> 
     204Load from structure with elements:.  
     205<p> 
     206<div class="fragment"><pre class="fragment">         { <a class="code" href="classbdm_1_1epdf.html#62c5b8ff71d9ebe6cd58d3c342eb1dc8" title="Description of the random variable.">rv</a> = {<span class="keyword">class</span>=<span class="stringliteral">"RV"</span>, names=(...),}; <span class="comment">// RV describing meaning of random variable</span> 
    192207           <span class="comment">// elements of offsprings</span> 
    193208         } 
    194209</pre></div>  
    195 <p>Reimplemented from <a class="el" href="classbdm_1_1root.html#a0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> 
    196  
    197 <p>Reimplemented in <a class="el" href="classbdm_1_1mexEpdf.html#af371482ea8d21c8ac01f011b3d942298">bdm::mexEpdf</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; sq_T &gt;</a>, <a class="el" href="classbdm_1_1egiw.html#a55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1eDirich.html#aaef2c328917dd80dce689d3d11d09567">bdm::eDirich</a>, <a class="el" href="classbdm_1_1egamma.html#a8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#a77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#a10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#a9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; ldmat &gt;</a>, <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; chmat &gt;</a>, and <a class="el" href="classbdm_1_1enorm.html#a61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; fsqmat &gt;</a>.</p> 
     210<p>Reimplemented from <a class="el" href="classbdm_1_1root.html#0551e3121091c5199bf4413b50522176">bdm::root</a>.</p> 
     211 
     212<p>Reimplemented in <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; sq_T &gt;</a>, <a class="el" href="classbdm_1_1egiw.html#55b76ec75bd2df5ef9cab3be20a33bbb">bdm::egiw</a>, <a class="el" href="classbdm_1_1eDirich.html#aef2c328917dd80dce689d3d11d09567">bdm::eDirich</a>, <a class="el" href="classbdm_1_1egamma.html#8a6fd1a1c0190f3e0d95a2a1f99aafc1">bdm::egamma</a>, <a class="el" href="classbdm_1_1euni.html#77f5fef1f006fe056066da23b9e5f042">bdm::euni</a>, <a class="el" href="classbdm_1_1merger__base.html#10dd390fc6f0d1733bb07cb51977160c">bdm::merger_base</a>, <a class="el" href="classbdm_1_1merger__mix.html#9f12b2c66344e25e6b3ef0255d000478">bdm::merger_mix</a>, <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; ldmat &gt;</a>, <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; chmat &gt;</a>, and <a class="el" href="classbdm_1_1enorm.html#61bd470764020bea6e1ed35000f259e6">bdm::enorm&lt; fsqmat &gt;</a>.</p> 
    198213 
    199214<p>References <a class="el" href="bdmbase_8h_source.html#l00414">bdm::epdf::set_rv()</a>.</p> 
    200215 
    201216</div> 
    202 </div> 
    203 <hr/>The documentation for this class was generated from the following file:<ul> 
    204 <li><a class="el" href="discrete_8h_source.html">discrete.h</a></li> 
    205 </ul> 
    206 </div> 
    207 <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 27 00:49:06 2009 for mixpp by&nbsp; 
     217</div><p> 
     218<hr>The documentation for this class was generated from the following file:<ul> 
     219<li><a class="el" href="discrete_8h_source.html">discrete.h</a></ul> 
     220</div> 
     221<hr size="1"><address style="text-align: right;"><small>Generated on Wed Oct 7 17:34:48 2009 for mixpp by&nbsp; 
    208222<a href="http://www.doxygen.org/index.html"> 
    209 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> 
     223<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> 
    210224</body> 
    211225</html>