sample_component: Component Sampling

View source: R/sample_component.R

sample_componentR Documentation

Component Sampling

Description

Draw the selected number of samples from a specified component and dimension of a numerical irreducible decomposition.

Usage

sample_component(out, dimension, component, n, dir = tempdir(), ...)

Arguments

out

the output of a positive-dimension run from bertini

dimension

the dimension of the component to be sampled from

component

the component to be sampled from. Indexing of components starts at 0, not 1.

n

the number of samples to be drawn from the selected component

dir

directory to place the files in, without an ending /

...

additional configuration arguments to be changed

Value

a matrix of samples

Examples

if (has_bertini()) {

# see ?bertini

# run initial numerical irreducible decomposition for equation xy = 0
input <- bertini_input("x*y")
input <- modify_config(input, tracktype = 1)

out <- bertini(input, output = "pos_dim")

# 25 samples from the first one-dimensional component (complex x-axis)
sample_component(out, dimension = 1, component = 0, n = 25)
}

dkahle/bertini documentation built on July 16, 2022, 9:26 a.m.