Combines draw-free geometry, sampling, truth, and response components into one canonically hashable specification.
Usage
synthetic.spec(
geometry,
sampling,
truth,
response,
recipe.id = NULL,
registry.tag = NULL,
compatibility = NULL,
metadata = list()
)Arguments
- geometry
A synthetic geometry component.
- sampling
A synthetic sampling component.
- truth
A synthetic truth component.
- response
A synthetic response component.
- recipe.id
Optional readable recipe label.
- registry.tag
Optional stable experimental-plan tag.
- compatibility
Optional serializable legacy compatibility metadata.
- metadata
Optional serializable scientific metadata.
Examples
spec <- synthetic.spec(
dgraphs::synthetic.circle(), dgraphs::synthetic.sampling.uniform.interval(0, 2 * pi),
synthetic.truth.named("helix.sin.v1"), synthetic.response.gaussian(0.1)
)
spec$specification.sha256
#> [1] "57201bec7f8342fa2dd46fd9beb11423e9e9792d52576c103d29298c610f4d5a"