1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
---|
2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
---|
3 | <compounddef id="libDS_8h" kind="file"> |
---|
4 | <compoundname>libDS.h</compoundname> |
---|
5 | <includes local="no">itpp/itbase.h</includes> |
---|
6 | <includes refid="libBM_8h" local="yes">libBM.h</includes> |
---|
7 | <includedby refid="libDS_8cpp" local="yes">work/git/mixpp/bdm/stat/libDS.cpp</includedby> |
---|
8 | <incdepgraph> |
---|
9 | <node id="380"> |
---|
10 | <label>libBM.h</label> |
---|
11 | <link refid="libBM_8h"/> |
---|
12 | <childnode refid="379" relation="include"> |
---|
13 | </childnode> |
---|
14 | </node> |
---|
15 | <node id="379"> |
---|
16 | <label>itpp/itbase.h</label> |
---|
17 | </node> |
---|
18 | <node id="378"> |
---|
19 | <label>work/git/mixpp/bdm/stat/libDS.h</label> |
---|
20 | <link refid="libDS.h"/> |
---|
21 | <childnode refid="379" relation="include"> |
---|
22 | </childnode> |
---|
23 | <childnode refid="380" relation="include"> |
---|
24 | </childnode> |
---|
25 | </node> |
---|
26 | </incdepgraph> |
---|
27 | <innerclass refid="classMemDS" prot="public">MemDS</innerclass> |
---|
28 | <briefdescription> |
---|
29 | <para>Common DataSources. </para> </briefdescription> |
---|
30 | <detaileddescription> |
---|
31 | <para><simplesect kind="author"><para>Vaclav Smidl.</para></simplesect> |
---|
32 | ----------------------------------- BDM++ - C++ library for Bayesian Decision Making under Uncertainty</para><para>Using IT++ for numerical operations ----------------------------------- </para> </detaileddescription> |
---|
33 | <programlisting> |
---|
34 | <codeline lineno="1"></codeline> |
---|
35 | <codeline lineno="13"><highlight class="preprocessor">#ifndef<sp/>DS_H</highlight></codeline> |
---|
36 | <codeline lineno="14"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>DS_H</highlight></codeline> |
---|
37 | <codeline lineno="15"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline> |
---|
38 | <codeline lineno="16"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><itpp/itbase.h></highlight><highlight class="normal"></highlight></codeline> |
---|
39 | <codeline lineno="17"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="libBM_8h" kindref="compound" tooltip="Bayesian Models (bm) that use Bayes rule to learn from observations.">libBM.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
---|
40 | <codeline lineno="18"><highlight class="normal"></highlight></codeline> |
---|
41 | <codeline lineno="19"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">itpp;</highlight></codeline> |
---|
42 | <codeline lineno="20"><highlight class="normal"></highlight></codeline> |
---|
43 | <codeline lineno="28" refid="classMemDS" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classMemDS" kindref="compound" tooltip="Class representing off-line data stored in memory.">MemDS</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classDS" kindref="compound" tooltip="Abstract class for discrete-time sources of data.">DS</ref><sp/>{</highlight></codeline> |
---|
44 | <codeline lineno="29"><highlight class="normal">mat<sp/>Data;</highlight></codeline> |
---|
45 | <codeline lineno="30"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>time;</highlight></codeline> |
---|
46 | <codeline lineno="31"><highlight class="normal">ivec<sp/>rowid;</highlight></codeline> |
---|
47 | <codeline lineno="32"><highlight class="normal">ivec<sp/>delays;</highlight></codeline> |
---|
48 | <codeline lineno="33"><highlight class="normal"></highlight></codeline> |
---|
49 | <codeline lineno="34"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
---|
50 | <codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classMemDS_123522b9e7dd0bb0c365cc9cde4c05449" kindref="member" tooltip="Returns full vector of observed data.">getdata</ref>(vec<sp/>&dt);</highlight></codeline> |
---|
51 | <codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classMemDS_123522b9e7dd0bb0c365cc9cde4c05449" kindref="member" tooltip="Returns full vector of observed data.">getdata</ref>(vec<sp/>&dt,<sp/>ivec<sp/>&indeces);</highlight></codeline> |
---|
52 | <codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classMemDS_15f72b555e0e4a61de1440c457cf57007" kindref="member" tooltip="Method that assigns random variables to the datasource. Typically, the datasource...">linkrvs</ref>(<ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&drv,<sp/><ref refid="classRV" kindref="compound" tooltip="Class representing variables, most often random variables.">RV</ref><sp/>&urv);</highlight></codeline> |
---|
53 | <codeline lineno="38" refid="classMemDS_1b120ed178f7c848f1227c928d8a79be8" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classMemDS_1b120ed178f7c848f1227c928d8a79be8" kindref="member" tooltip="Accepts action variable and schedule it for application.">write</ref>(vec<sp/>&ut){it_error(</highlight><highlight class="stringliteral">"MemDS::write<sp/>is<sp/>not<sp/>supported"</highlight><highlight class="normal">);}</highlight></codeline> |
---|
54 | <codeline lineno="39" refid="classMemDS_16279bf18d44343750747ecc12e050f09" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classMemDS_1b120ed178f7c848f1227c928d8a79be8" kindref="member" tooltip="Accepts action variable and schedule it for application.">write</ref>(vec<sp/>&ut,ivec<sp/>&indexes){it_error(</highlight><highlight class="stringliteral">"MemDS::write<sp/>is<sp/>not<sp/>supported"</highlight><highlight class="normal">);}</highlight></codeline> |
---|
55 | <codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classMemDS_121916feb3e5ff960855c09b06a0d279b" kindref="member" tooltip="Moves from to , i.e. perfroms the actions and reads response of the system.">step</ref>();</highlight></codeline> |
---|
56 | <codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classMemDS_184cfba80cb32d07be94690658175e9c4" kindref="member" tooltip="Default constructor.">MemDS</ref>(mat<sp/>&Dat,<sp/>ivec<sp/>&rowid,<sp/>ivec<sp/>&delays);</highlight></codeline> |
---|
57 | <codeline lineno="43"><highlight class="normal">};</highlight></codeline> |
---|
58 | <codeline lineno="44"><highlight class="normal"></highlight></codeline> |
---|
59 | <codeline lineno="45"><highlight class="normal"></highlight></codeline> |
---|
60 | <codeline lineno="46"><highlight class="normal"></highlight></codeline> |
---|
61 | <codeline lineno="47"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/>//<sp/>DS_H</highlight></codeline> |
---|
62 | </programlisting> |
---|
63 | <location file="/home/smidl/work/git/mixpp/bdm/stat/libDS.h"/> |
---|
64 | </compounddef> |
---|
65 | </doxygen> |
---|