ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
FileContentsSample Class Reference

This is the base class for generating objects that contain the contents of a sample/chain file generated by a ParaMonte sampler.
This class is meant to be primarily internally used by the ParaMonte MATLAB library samplers.
More...

Inheritance diagram for FileContentsSample:
Collaboration diagram for FileContentsSample:

Public Member Functions

function FileContentsSample (in file, in silent, in sep)
 Return a scalar object of class pm.sampling.FileContentsSample.
More...
 
function setstats (in self)
 Compute the statistics of the parent object of class pm.sampling.FileContentsSample and store the results in the respective fields of the stats attribute of the parent object.
More...
 
function setvis (in self)
 Compute the statistics of the parent object of class pm.sampling.FileContentsSample and store the results in the respective fields of the stats attribute of the parent object.
More...
 

Data Fields

Property ndim
 
Property slfc
 
Property stats
 
Property vis
 
Property slfcname
 

Detailed Description

This is the base class for generating objects that contain the contents of a sample/chain file generated by a ParaMonte sampler.
This class is meant to be primarily internally used by the ParaMonte MATLAB library samplers.

Note
See the documentation of the class constructor.
See below for information on the attributes (properties).
See below for information on the methods.


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Amir Shahmoradi, 3:31 PM Friday, November 8, 2024, Dallas, TX
Fatemeh Bagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.

Definition at line 22 of file FileContentsSample.m.

Constructor & Destructor Documentation

◆ FileContentsSample()

function FileContentsSample::FileContentsSample ( in  file,
in  silent,
in  sep 
)

Return a scalar object of class pm.sampling.FileContentsSample.

This is the constructor of the class pm.sampling.FileContentsSample.

Parameters
[in]file: The input scalar MATLAB string containing the path to an external file.
[in]silent: See the corresponding argument of pm.sampling.FileContentsRestart class.
(optional. The default is set by pm.sampling.FileContentsRestart.)
[in]sep: The input scalar MATLAB string containing the field separator used in the file.
(optional, default = ",")
Returns
self : The output scalar object of class pm.sampling.FileContentsSample.


Possible calling interfaces

contents = pm.sampling.FileContentsSample(file)
contents = pm.sampling.FileContentsSample(file, [])
contents = pm.sampling.FileContentsSample(file, silent)
contents = pm.sampling.FileContentsSample(file, [], [])
contents = pm.sampling.FileContentsSample(file, [], sep)
contents = pm.sampling.FileContentsSample(file, silent, [])
contents = pm.sampling.FileContentsSample(file, silent, sep)
Note
See the documentations of the subclasses of this class for example usage.


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Joshua Alexander Osborne, May 21 2024, 3:36 AM, University of Texas at Arlington
Fatemeh Bagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.
Amir Shahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin

Member Function Documentation

◆ setstats()

function FileContentsSample::setstats ( in  self)

Compute the statistics of the parent object of class pm.sampling.FileContentsSample and store the results in the respective fields of the stats attribute of the parent object.

This is a dynamic Hidden method of class pm.sampling.FileContentsSample.
It is inaccessible to the end users of the library.

Parameters
[in]self: The input parent object of class pm.sampling.FileContentsSample which is implicitly passed to this dynamic method (not by the user).


Possible calling interfaces

contents = pm.sampling.FileContentsSample();
contents.setstats();


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Amir Shahmoradi, 2:11 PM Friday, November 8, 2024, Dallas, TX
Fatemeh Bagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.

◆ setvis()

function FileContentsSample::setvis ( in  self)

Compute the statistics of the parent object of class pm.sampling.FileContentsSample and store the results in the respective fields of the stats attribute of the parent object.

This is a dynamic Hidden method of class pm.sampling.FileContentsSample.
It is inaccessible to the end users of the library.

Parameters
[in]self: The input parent object of class pm.sampling.FileContentsSample which is implicitly passed to this dynamic method (not by the user).


Possible calling interfaces

contents = pm.sampling.FileContentsSample();
contents.setvis();


Final Remarks


If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.

Author:
Amir Shahmoradi, 2:12 PM Friday, November 8, 2024, Dallas, TX
Fatemeh Bagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.

Field Documentation

◆ ndim

Property FileContentsSample::ndim

ndim

The scalar MATLAB integer representing the number of dimensions of the domain of the objective function sampled.
This integer is also the number of columns in the file that correspond that contain the sampled states from the domain of the mathematical objective function.

Definition at line 39 of file FileContentsSample.m.

◆ slfc

Property FileContentsSample::slfc

slfc

The scalar MATLAB integer representing the column index of the dataframe component df that contains the natural logarithm of the objective function values corresponding to the sampled states next to this column, such that the following relationship holds.

This is the base class for generating objects that contain the contents of a sample/chain file genera...

While this column index can be readily inferred by exploring the contents of the dataframe component, this column index is also computed and explicitly offered to conveniently slice the values of the sampled states and their corresponding log-function values.

Definition at line 59 of file FileContentsSample.m.

◆ slfcname

Property FileContentsSample::slfcname

slfcname

The Hidden scalar MATLAB string representing the column name of the dataframe component df that contains the natural logarithm of the objective function values corresponding to the sampled states next to this column.

Warning
This is an internal Hidden class attribute that is inaccessible to the end users.

Definition at line 99 of file FileContentsSample.m.

◆ stats

Property FileContentsSample::stats

stats

The scalar MATLAB object containing the set of computed properties of the contents of the file.
This component is populated by the subclasses automatically.
It can also be manually constructed by calling the Hidden class method pm.sampling.FileContentsSample::setstats.

Definition at line 70 of file FileContentsSample.m.

◆ vis

Property FileContentsSample::vis

vis

The scalar MATLAB struct containing the set of predefined visualizations for the output data.
This component is populated by the subclasses automatically.
It can also be manually constructed by calling the Hidden class method pm.sampling.FileContentsSample::setvis.

Definition at line 80 of file FileContentsSample.m.


The documentation for this class was generated from the following file: