def read_xy(self):
        """ Reads the measured color and converts it as CIE x,y coordinates.

        See http://www.techmind.org/colour/ and https://en.wikipedia.org/wiki/CIE_1931_color_space for more information.

        :return: a (x, y) tuple
        """
        rgbc = self.read_rgbc_word()
        x_bar = -0.14282 * rgbc[0] + 1.54924 * rgbc[1] + -0.95641 * rgbc[2]
        y_bar = -0.32466 * rgbc[0] + 1.57837 * rgbc[1] + -0.73191 * rgbc[2]
        z_bar = -0.68202 * rgbc[0] + 0.77073 * rgbc[1] + 0.563320 * rgbc[2]

        x = x_bar / (x_bar + y_bar + z_bar)
        y = y_bar / (x_bar + y_bar + z_bar)

        return [x, y]
dataset/ETHPy150Open DexterInd/GrovePi/Software/Python/grove_i2c_color_sensor/grove_i2c_color_sensor.py/GroveI2CColorSensor.read_xy/original