Skip to contents

Deterministic interval-grid sampling specification

Usage

synthetic.sampling.grid.interval(
  lower,
  upper,
  endpoints = c("exclude.lower", "exclude.upper", "include.both")
)

Arguments

lower, upper

Interval bounds.

endpoints

Endpoint convention. "exclude.lower" reproduces the historical circle grid; "include.both" reproduces the historical uniform trefoil grid.

Value

A deterministic synthetic sampling component.

Examples

synthetic.sampling.grid.interval(0, 2 * pi, endpoints = "exclude.lower")
#> $kind
#> [1] "sampling"
#> 
#> $family
#> [1] "grid.interval"
#> 
#> $version
#> [1] 1
#> 
#> $parameters
#> $parameters$lower
#> [1] 0
#> 
#> $parameters$upper
#> [1] 6.283185
#> 
#> $parameters$endpoints
#> [1] "exclude.lower"
#> 
#> $parameters$algorithm
#> [1] "base.seq.length.out.v1"
#> 
#> 
#> attr(,"class")
#> [1] "synthetic_grid_interval_sampling" "synthetic_sampling_component"    
#> [3] "synthetic_sampling"               "synthetic_component"