public KNearestNeighbor(int lenghOfPattern, int numOfKNN, double deepCompare)
 {
     this.numOfKNN     = numOfKNN;
     listPoint         = new FindImportantPoint();
     listPatter        = new List <Pattern>();
     listKNN           = new List <int>(this.numOfKNN);
     listSequence      = new List <Pattern>();
     this.patternLengh = lenghOfPattern;
     this.deepCompare  = deepCompare;
 }
 private void Init(List <DataPrediction> data, int lenghOfPattern, int numOfKNN, double deepCompare)
 {
     this.numOfKNN       = numOfKNN;
     this.dataForPredict = data;
     this.patternLengh   = lenghOfPattern;
     listPoint           = new FindImportantPoint(dataForPredict);
     listPatter          = new List <Pattern>();
     listImportantPoint  = listPoint.GetlistImportPoint(deepCompare);
     listKNN             = new List <int>(this.numOfKNN);
     listSequence        = new List <Pattern>();
     GenListPattern();
     this.deepCompare = deepCompare;
 }