.generate_coefficients | R Documentation |
This function generates a vector of coefficients for a motif based on the specified distribution. It can sample coefficients from a numeric vector, a uniform distribution, or a beta distribution.
.generate_coefficients(
motif_i,
distrib,
dist_knots,
norder,
coeff_min,
coeff_max
)
motif_i |
A list representing the motif structure that includes the length ('len'). |
distrib |
A string or numeric vector indicating the distribution from which to generate coefficients. Accepted values are "unif", "beta", or a numeric vector. |
dist_knots |
A numeric value indicating the distance between knots. |
norder |
An integer specifying the order of the B-spline. |
coeff_min |
A numeric value indicating the minimum coefficient value for uniform or beta distributions. |
coeff_max |
A numeric value indicating the maximum coefficient value for uniform or beta distributions. |
Generate Coefficients for Motif
- For uniform distribution, coefficients are generated within the specified range defined by 'coeff_min' and 'coeff_max'. - For beta distribution, coefficients are scaled to the desired range using the specified minimum and maximum values.
A modified motif structure containing the generated coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.