@classmethod
def transformData(cls, data, U, dtype):
    """
        Transform the given data set with respect to the
        specified dtype.
        @param data: dictionary {<time step>: {<parameter>: 1d numpy array}}
        @param U: Dist, distribution
        @param dtype: KnowledgeType
        """
    f = cls.getFunctionToApproximate(dtype, U)
    res = {}
    for t, item in list(data.items()):
        res[t] = {}
        for p, value in list(item.items()):
            res[t][p] = f(p, value)
    return res
