Skip to contents

Truncated-normal sampling specification

Usage

synthetic.sampling.truncated.normal(
  mean,
  sd,
  lower,
  upper,
  order = c("draw", "ascending"),
  algorithm = "inverse.cdf.v1"
)

Arguments

mean, sd

Normal parameters.

lower, upper

Truncation bounds.

order

Ordering policy.

algorithm

Versioned draw algorithm.

Value

A synthetic sampling component.

Examples

synthetic.sampling.truncated.normal(0, 1, -2, 2)
#> $kind
#> [1] "sampling"
#> 
#> $family
#> [1] "truncated.normal"
#> 
#> $version
#> [1] 1
#> 
#> $parameters
#> $parameters$mean
#> [1] 0
#> 
#> $parameters$sd
#> [1] 1
#> 
#> $parameters$lower
#> [1] -2
#> 
#> $parameters$upper
#> [1] 2
#> 
#> $parameters$order
#> [1] "draw"
#> 
#> $parameters$algorithm
#> [1] "inverse.cdf.v1"
#> 
#> 
#> attr(,"class")
#> [1] "synthetic_truncated_normal_sampling" "synthetic_sampling_component"       
#> [3] "synthetic_sampling"                  "synthetic_component"