'''
Created on Feb 22, 2013
@author: Rossi Kamal(rossi@khu.ac.kr), under supervision of Professor Dr Choong Seon Hong(cshong@khu.ac.kr)

INPUT:
X:2D Array
OUTPUT:
MU: 1*2 Matrix 
'''

class BivariateMeanGenerator:
    def __init__(self,bi_variate_x):
        self.bi_variate_x=bi_variate_x
    def calculate_bi_variate_mean(self): 
        mu0=0.0
        for i in range(len(self.bi_variate_x)):
            mu0=mu0+ self.bi_variate_x[i][0]
        mu1=0.0
        for j in range(len(self.bi_variate_x)):
            mu1=mu1+ self.bi_variate_x[j][1]
        return 2*mu0/self.bi_variate_x.size,2*mu1/self.bi_variate_x.size
    