Learn R Programming

evola (version 1.0.7)

inbFun: Fitness function from contribution theory using only the group relationship

Description

Simple function for fitness where we only use the group relationship.

Usage

inbFun(Q,D,...)

Value

$res

a vector of values

Arguments

Q

A QTL matrix. See details.

D

An LD matrix. See details.

...

additional arguments to pass.

Details

A simple apply function of a regular index weighted by a vector of relationships.

Matrix::diag(Q%*%Matrix::tcrossprod(D,Q)) of dimensions n x n

Notice that Q represents the marker of QTLs (columns) for all solutions (rows) and D the LD between QTLs. The user can modify this function as needed and provide it to the evolafit function along with other arguments.

References

Giovanny Covarrubias-Pazaran (2024). evola: a simple evolutionary algorithm for complex problems. To be submitted to Bioinformatics.

See Also

evolafit -- the core function of the package

Examples

Run this code

Q <- matrix(1,3,3) # QTL matrix available internally
D <- diag(3) # LD matrix
inbFun(Q=Q, D=D) # group relationship

Run the code above in your browser using DataLab