def __init__(self, data):
        self.summary = {}
        big_freqs = data[data.cluster == 'big'].frequency.unique()
        little_freqs = data[data.cluster == 'little'].frequency.unique()
        self.summary['frequency'] = max(set(big_freqs).intersection(set(little_freqs)))

        big_sc = data[(data.cluster == 'big') &
                      (data.frequency == self.summary['frequency']) &
                      (data.cpus == 1)]
        little_sc = data[(data.cluster == 'little') &
                         (data.frequency == self.summary['frequency']) &
                         (data.cpus == 1)]
        self.summary['performance_ratio'] = big_sc.performance.item() / little_sc.performance.item()
        self.summary['power_ratio'] = big_sc.power.item() / little_sc.power.item()
        self.summary['max_performance'] = data[data.cpus == 1].performance.max()
        self.summary['max_power'] = data[data.cpus == 1].power.max()
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/energy_model/__init__.py/PowerPerformanceAnalysis.__init__/original