R: Logarithmically spaced scale vector generation

logScale {ifultools} | R Documentation

## Logarithmically spaced scale vector generation

### Description

Creates a vector whose values are base-2 logarithmically spaced.

### Usage

    logScale(scale.min, scale.max,
        scale.ratio=2, scale.res=NULL, coerce=NULL)

### Arguments

`scale.min` | an integer denoting the minimum scale.
`scale.max` | an integer denoting the maximum scale.
`coerce` | the coercion function to use on the resulting scale vector. Default: NULL (no coercion).
`scale.ratio` | a numeric value representing the ratio of the next scale over the current scale, i.e., the ratio of successive scales. Default: 2.
`scale.res` | the numeric value denoting scale resolution. This input serves as an alternative to the `scale.ratio` input, and is related via `scale.ratio <- 1 / scale.res + 1` or conversely `scale.res <- 1/(scale.ratio - 1)`. Default: `NULL` (`scale.ratio` is used instead).

### Value

a numeric vector containing the scales.

### See Also

`scale`, `ilogb`.

### Examples

    logScale(scale.min = 1, scale.max=34, scale.ratio=4)

[Package ifultools version 2.0-4 Index]