Generate log-spaced vector
stm_logspace.Rd
stm_logspace()
generates a vector of logarithmically spaced values
from from
to to
, using a logarithmic scale with base 10.
Arguments
- from
A numeric value representing the start of the sequence in logarithmic space.
- to
A numeric value representing the end of the sequence in logarithmic space.
- n
Optional. A positive integer specifying the number of points in the sequence. Default is 50.
- digits
Optional. An integer specifying the number of decimal places to round the result. Default is
NULL
.
Details
This function creates a sequence of values with logarithmic
spacing, which is useful for visualizing data with a wide range or
for numerical methods involving logarithms. If digits
is provided,
the resulting vector will be rounded to the specified number of decimal
places.