
Function to evaluate fitness using genomic data with multi-objective support
Source:R/RcppExports.R
evaluate_fitness_cpp.Rd
Function to evaluate fitness using genomic data with multi-objective support
Examples
genomic_data <- matrix(rnorm(100), nrow = 10, ncol = 10)
population <- BioGA::initialize_population_cpp(genomic_data,
population_size = 5)
weights <- c(1.0, 0.5) # Weight for expression difference and sparsity
BioGA::evaluate_fitness_cpp(genomic_data, population, weights)
#> [,1] [,2]
#> [1,] 174.1882 0.5
#> [2,] 185.6447 0.5
#> [3,] 282.9144 0.5
#> [4,] 260.4805 0.5
#> [5,] 239.6672 0.5