check_criterion: Check chosen criterion
Description
Checks if the criterion is viable or matches it to the list of implemented
criterions.
Usage
check_criterion(input_criterion, criterion_names = c("ig", "kl", "cs"))
Arguments
input_criterion
character
string, criterion from input.
criterion_names
list of implemented criterions, always in lowercase.
Value
a list of three:
criterion name,
its function,
nice name for outputs.