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); }
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; }
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; }