/// <summary> /// # stage flow label ///1.76 40.4 1995 ///9.89 9390 1980 ///10.64 11500 2017 /// </summary> /// <returns></returns> private ObservationPoint[] ReadPoints() { var rval = new List <ObservationPoint>(); foreach (string s in textBoxPoints.Lines) { var tokens = s.Trim().Split(new char[] { ' ', ',' }, StringSplitOptions.RemoveEmptyEntries); double x, y; if (tokens.Length >= 2 && double.TryParse(tokens[0], out x) && double.TryParse(tokens[1], out y) ) { ObservationPoint pt = new ObservationPoint(); pt.x = x; pt.y = y; if (tokens.Length >= 3) { pt.tag = tokens[2]; } rval.Add(pt); } } return(rval.ToArray()); }
public RatingTable() { Scaling = Scaling.LogLog; Points = new ObservationPoint[] { }; }