Ejemplo n.º 1
0
 /// <summary>
 /// Constructor with a name and time interval
 /// </summary>
 /// <param name="name">
 /// A <see cref="System.String"/>
 /// </param>
 /// <param name="timeInterval">
 /// A <see cref="System.Double"/>
 /// </param>
 public TimeSeries(string name, double timeInterval)
 {
     parameters = new TimeSeriesFunction(name, timeInterval);
     series = new List<double>();
     maxValue = double.MinValue;
     minValue = double.MaxValue;
 }
Ejemplo n.º 2
0
 public bool exptEquals(TimeSeriesFunction other)
 {
     if (this.Name != other.Name)
     {
         Console.Write("TimeSeriesFunction objects not equal: ");
         Console.WriteLine("this.Name='" + this.Name + "'; other.Name='" + other.Name);
         return false;
     }
     if (this.TimeInterval != other.TimeInterval)
     {
         Console.Write("TimeSeriesFunction objects not equal: ");
         Console.WriteLine("this.TimeInterval=" + this.TimeInterval + "; other.TimeInterval=" + other.TimeInterval);
         return false;
     }
     if (this.FunctionString != other.FunctionString)
     {
         Console.Write("TimeSeriesFunction objects not equal: ");
         Console.WriteLine("this.FunctionString='" + this.FunctionString + "'; other.FunctionString='" + other.FunctionString);
         return false;
     }
     return true;
 }