Example #1
0
        private void insertRow(int index, Customer cus)
        {
            index = index + 1;

            string[] row = new string[7];
            row[0] = index + "";
            row[1] = cus.getName();
            row[2] = cus.getAge() + "";
            row[3] = cus.getGender() + "";
            row[4] = cus.getIncoming() + "";
            row[5] = cus.getNumcard() + "";
            row[6] = cus.getResponse() + "";

            dataGrid.Rows.Add(row);
        }
Example #2
0
 public Normalize(  Customer cus, int maxAge, int maxIncome, int maxNumCard )
 {
     age = (float) cus.getAge() / (float)maxAge;
     incoming = (float) cus.getIncoming() / (float)maxIncome;
     numCard = (float) cus.getNumcard() / (float)maxNumCard;
 }
Example #3
0
        private void insertRow(int index, Customer cus)
        {
            index = index + 1;

            string[] row = new string[7];
            row[0] = index + "";
            row[1] = cus.getName();
            row[2] = cus.getAge() + "";
            row[3] = cus.getGender() + "";
            row[4] = cus.getIncoming() + "";
            row[5] = cus.getNumcard() + "";
            row[6] = cus.getResponse() + "";

            dataGrid.Rows.Add(row);
        }
Example #4
0
 public Normalize(Customer cus, int maxAge, int maxIncome, int maxNumCard)
 {
     age      = (float)cus.getAge() / (float)maxAge;
     incoming = (float)cus.getIncoming() / (float)maxIncome;
     numCard  = (float)cus.getNumcard() / (float)maxNumCard;
 }