dot-generate_coefficients: Generate Coefficients

.generate_coefficientsR Documentation

Generate Coefficients

Description

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.

Usage

.generate_coefficients(
  motif_i,
  distrib,
  dist_knots,
  norder,
  coeff_min,
  coeff_max
)

Arguments

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.

Details

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.

Value

A modified motif structure containing the generated coefficients.


funMoDisco documentation built on April 16, 2025, 1:10 a.m.