Description Usage Arguments Details Value
Equation 9. There is a slight modification where I include pure black and pure white as additional comparisons to avoid the algorithm settling on those values. This also has an effect of reducing saturation more generally.
1 | .fit_cj(new_mat, contiguity_matrix, threshold = 5)
|
new_mat |
Matrix of rgb colors |
contiguity_matrix |
Matrix for comparisons |
threshold |
Fit threshold |
The threshold can be modified, especially for the black/white comparisons, but I had to set them >6 to get interesting results. You could try using different values for each one.
Vector of cj values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.