Mapper updated for Discrete Digital

The function getContinuosFunctionValue will be able to get values for Digital as well as Discrete, refactor it to getFunctionValue()