Skip to contents

This generates a sequence of knots for a given set of time points based on the quantiles.

Usage

knots_quantile(x, dimension, tiny = 1e-05)

Arguments

x

Numeric vector representing time points for the geodesic path.

dimension

Numeric vector the number of knots.

tiny

Numeric value representing a small constant that slightly expands the boundary.

Value

Numeric vector representing knots sequence in the time domain.

Examples

knots_quantile(seq(0, 1, length.out = 100), 10)
#>             11.11111%  22.22222%  33.33333%  44.44444%  55.55556%  66.66667% 
#> -0.0000100  0.1111111  0.2222222  0.3333333  0.4444444  0.5454545  0.6565657 
#>  77.77778%  88.88889%            
#>  0.7676768  0.8787879  1.0000100