Function to plot the fitness of the final GA result, relative to the randomly generated suggestions.
1 2 | plotFitness(stim_sample, sample_size, distance_mat,
fitness = fitnessFunction, lower_tri_function = sumHeight)
|
stim_sample |
a list containing the final items and a GA object |
sample_size |
the number of items to sample |
distance_mat |
a population inter-item distance matrix |
fitness |
the fitness function passed to ga() |
lower_tri_funciton |
the specific function to assess fitness of the lower triangle of the sample distance matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.