Skip to contents

Generate a breaks vector of size n with exponentially power_trans spaced breaks.

Usage

breaks_power(n = 10, exponent = 0.5)

Arguments

n

<int> the size of the output vector. Ouput size will be at least length-2 for finite input.

exponent

<number> The power exponent

Details

If input range is non-finite, an empty vector is returned.

See also

Examples

breaks_power(5)(-10:10)
#> [1] -10.0  -2.5   0.0   2.5  10.0
breaks_power(5, exponent = 1 / 3)(-1:1)
#> [1] -1.000 -0.125  0.000  0.125  1.000