View source: R/sample_component.R
sample_component | R Documentation |
Draw the selected number of samples from a specified component and dimension of a numerical irreducible decomposition.
sample_component(out, dimension, component, n, dir = tempdir(), ...)
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 |
a matrix of samples
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) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.