ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Go to the source code of this file.
Functions | |
function | readRestart (in sampler, in pattern) |
Return a list of objects of superclass pm.sampling.FileContentsRestart containing the contents of a (set of) ParaMonte simulation output restart file(s) whose paths match the specified input pattern or the simulation specification sampler.spec.outputFileName .More... | |
function readRestart | ( | in | sampler, |
in | pattern | ||
) |
Return a list of objects of superclass pm.sampling.FileContentsRestart containing the contents of a (set of) ParaMonte simulation output restart file(s) whose paths match the specified input pattern
or the simulation specification sampler.spec.outputFileName
.
[in] | sampler | : The input object of superclass pm.sampling.Sampler whose type and properties determine the type of the output object(s). (optional. If empty, it is set to pm.sampling.Sampler().) |
[in] | pattern | : The input scalar MATLAB string containing the pattern matching the desired restart file(s) whose contents is to be read. The specified pattern only needs to partially identify the name of the simulation to which the restart file belongs.For example, specifying "./mydir/mysim" as input will lead to a search for file(s) beginning with "mysim" and ending with "_restart.txt" inside the directory "./mydir/" .If there are multiple files matching in the input pattern , then all such files will be read and returned as elements of a list.If the specified pattern is a valid existing URL, the file will be downloaded as a temporary file to the local system, its contents shall be parsed and the file will be subsequently removed. If the input pattern is empty, then the method will search for any possible candidate files with the appropriate suffix in the current working directory.(optional. If empty, it is set to sampler.spec.outputFileName or if empty, it is set to "./" .) |
restartList
: The output MATLAB cell array of objects of superclass pm.sampling.FileContentsRestart, each of which corresponds to the contents of a unique ParaMonte sampler restart file.sampler
is of type pm.sampling.Sampler, then the output array elements are of type pm.sampling.FileContentsRestart.sampler
is of type pm.sampling.Paradram, then the output array elements are of type pm.sampling.FileContentsRestartDRAM.
Possible calling interfaces ⛓
sampler
can be an instance of any one of the ParaMonte sampler classes, such as pm.sampling.Paradram.
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.
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.