public void draw(distanceType dType) { thisPoint.DrawCircle(classifierColor); switch(dType) { case distanceType.Eucli: KECircle.DrawCircle(Color.red); break; case distanceType.Cheby: KCCircle.DrawCircle(Color.red); break; case distanceType.Manhatt: KMCircle.DrawCircle(Color.red); break; default: break; } }
public string setClassifier(distanceType dt) { string newClassification = ""; switch (dt) { case distanceType.Eucli: newClassification = thisNewClass(Euclidaen); break; case distanceType.Cheby: newClassification = thisNewClass(Chebyshev); break; case distanceType.Manhatt: newClassification = thisNewClass(Manhattan); break; } return(newClassification); }
public void draw(distanceType dType) { thisPoint.DrawCircle(classifierColor); switch (dType) { case distanceType.Eucli: KECircle.DrawCircle(Color.red); break; case distanceType.Cheby: KCCircle.DrawCircle(Color.red); break; case distanceType.Manhatt: KMCircle.DrawCircle(Color.red); break; default: break; } }
public string setClassifier(distanceType dt) { string newClassification = ""; switch(dt) { case distanceType.Eucli: newClassification = thisNewClass(Euclidaen); break; case distanceType.Cheby: newClassification = thisNewClass(Chebyshev); break; case distanceType.Manhatt: newClassification = thisNewClass(Manhattan); break; } return newClassification; }