calculate_epimark_deviation function

Internal - calculating intensity deviation feature