Skip to contents

Compare two synthetic datasets scientifically

Usage

compare.synthetic.dataset(x, y, tolerance = c(1e-12, 1e-10))

Arguments

x, y

Synthetic datasets.

tolerance

Absolute-plus-relative comparison tolerance.

Value

A list with equality and mismatch details.

Examples

spec <- synthetic.registry.spec("G1")
x <- materialize.synthetic(spec, n = 20L, seed = 1L)
y <- materialize.synthetic(spec, n = 20L, seed = 1L)
compare.synthetic.dataset(x, y)
#> $equal
#> [1] TRUE
#> 
#> $mismatches
#> character(0)
#>