ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
logspaceint.m
Go to the documentation of this file.
1%> \brief
2%> Return a set of unique integer spacings almost linearly
3%> spaced in the logarithmic scale in the input given base,
4%> between the specified lower and upper bounds.
5%>
6%> \param[in] loglb : See the documentation of the corresponding argument of [pm.array.logspace](@ref logspace).
7%> \param[in] logub : See the documentation of the corresponding argument of [pm.array.logspace](@ref logspace).
8%> \param[in] logskip : See the documentation of the corresponding argument of [pm.array.logspace](@ref logspace).
9%> \param[in] base : See the documentation of the corresponding argument of [pm.array.logspace](@ref logspace).
10%>
11%> \return
12%> `array` : The output vector of MATLAB real values containing
13%> the set of logarithmically-spaced integer values in
14%> the specified input range with the specified ``base``.
15%>
16%> \interface{logspaceint}
17%> \code{.m}
18%>
19%> array = pm.array.logspaceint(loglb, logub)
20%> array = pm.array.logspaceint(loglb, logub, logskip)
21%> array = pm.array.logspaceint(loglb, logub, [], base)
22%> array = pm.array.logspaceint(loglb, logub, logskip, base)
23%> \endcode
24%>
25%> \example{logspaceint}
26%> \include{lineno} example/array/logspaceint/main.m
27%> \output{logspaceint}
28%> \include{lineno} example/array/logspaceint/main.out.m
29%>
30%> \final{logspaceint}
31%>
32%> \author
33%> \JoshuaOsborne, May 21 2024, 3:41 PM, University of Texas at Arlington<br>
34%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
35%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
36function array = logspaceint(loglb, logub, logskip, base)
37 if nargin < 3
38 logskip = [];
39 end
40 if nargin < 4
41 array = unique(round(pm.array.logspace(loglb, logub, logskip)));
42 else
43 array = unique(round(pm.array.logspace(loglb, logub, logskip, base)));
44 end
45end
function logspace(in loglb, in logub, in logskip, in base)
Return a set of unique real spacings linearly-spaced in the logarithmic scale in the input given base...
function logspaceint(in loglb, in logub, in logskip, in base)
Return a set of unique integer spacings almost linearly spaced in the logarithmic scale in the input ...