public DataSerie2D GetClassifiedSerie(DataSerie1D dsIn) { if (Equals(dsIn, null)) { return(null); } if (Equals(dsIn, null)) { return(null); } DataSerie2D dsOut = new DataSerie2D(); try { int classe = 0; double devision = 0; foreach (DataItem1D itm in dsIn.Data) { devision = Math.Floor(((itm.X_Value * MaxValue) / Step)); classe = (int)devision; dsOut.Add(itm.Title, (itm.X_Value * MaxValue), (classe + 1)); } } catch (Exception ex) { throw ex; } return(dsOut); }
public void Compute() { ClassifiedDataSerie = GetClassifiedSerie(InputDataSerie); }