The main idea to handle a discrete variable is to use the variable position index in the array of normalized values. For example, when the created index is 1 this is the fist normalized value that will be taken. So, if there are n normalized values in the set, there are n index positions from 1 to n.