ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
FileContentsChain.m
Go to the documentation of this file.
1%> \brief
2%> This is the base class for generating objects
3%> that contain the contents of a chain file
4%> generated by a ParaMonte sampler.<br>
5%>
6%> \details
7%> This class is meant to be primarily internally
8%> used by the ParaMonte MATLAB library samplers.<br>
9%> See the documentation of the class constructor.<br>
10%>
11%> \note
12%> See below for information on the attributes (properties).
13%>
14%> \note
15%> See below for information on the methods.<br>
16%>
17%> \final{FileContentsChain}
18%>
19%> \author
20%> \JoshuaOsborne, May 21 2024, 1:05 AM, University of Texas at Arlington<br>
21%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
22%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
23classdef FileContentsChain < pm.sampling.FileContentsSample
24
25 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26
27 properties(Access = public)
28 end
29
30 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
31
32 properties(Hidden)
33 end
34
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36
37 methods(Access = public)
38
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40
41 %> \brief
42 %> Return a scalar object of class [pm.sampling.FileContentsChain](@ref FileContentsChain).<br>
43 %>
44 %> \details
45 %> This is the constructor of the class [pm.sampling.FileContentsChain](@ref FileContentsChain).<br>
46 %>
47 %> \param[in] file : The input scalar MATLAB string containing the path or web address to an external file.<br>
48 %> \param[in] silent : See the corresponding argument of [pm.sampling.FileContentsSample](@ref FileContentsSample) class.<br>
49 %> (**optional**. The default is set by [pm.sampling.FileContentsSample](@ref FileContentsSample).)
50 %> \param[in] sep : See the corresponding argument of [pm.sampling.FileContentsSample](@ref FileContentsSample) class.<br>
51 %> (**optional**. The default is set by [pm.sampling.FileContentsSample](@ref FileContentsSample).)
52 %>
53 %> \return
54 %> ``self`` : The output scalar object of class [pm.sampling.FileContentsChain](@ref FileContentsChain).<br>
55 %>
56 %> \interface{FileContentsChain}
57 %> \code{.m}
58 %>
59 %> contents = pm.sampling.FileContentsChain(file)
60 %> contents = pm.sampling.FileContentsChain(file, [])
61 %> contents = pm.sampling.FileContentsChain(file, silent)
62 %> contents = pm.sampling.FileContentsChain(file, [], sep)
63 %> contents = pm.sampling.FileContentsChain(file, silent, sep)
64 %>
65 %> \endcode
66 %>
67 %> \note
68 %> See the documentations of the subclasses of this class for example usage.<br>
69 %>
70 %> \final{FileContentsChain}
71 %>
72 %> \author
73 %> \JoshuaOsborne, May 21 2024, 1:07 AM, University of Texas at Arlington<br>
74 %> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
75 %> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
76 function self = FileContentsChain(file, silent, sep)
77
78 if nargin < 3
79 sep = [];
80 end
81
82 if nargin < 2
83 silent = [];
84 end
85
86 self = self@pm.sampling.FileContentsSample(file, silent, sep);
87
88 end
89
90 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91
92 end
93
94 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95
96end
This is the base class for generating objects that contain the contents of a chain file generated by ...
function FileContentsChain(in file, in silent, in sep)
Return a scalar object of class pm.sampling.FileContentsChain.
This is the base class for generating objects that contain the contents of a sample/chain file genera...