Beispiel #1
0
    def __mean_squared_error(self, model):
        accum = complex(0,0)

        for acquisition_direction in self.__acquisition_directions:
            accum += (model.value(acquisition_direction) - adc(self.__tensor, acquisition_direction))**2

        return accum/len(self.__acquisition_directions)
Beispiel #2
0
    def __adcs(self, tensor):
        adcs = []

        for acquisition_direction in self.__acquisition_directions:
            adcs.append(adc(tensor, acquisition_direction))

        return adcs