Ejemplo n.º 1
0
 public Series Copy(int index1, int index2)
 {
     Series series = new Series(this.Nrows);
     int arg_17_0 = this.sortedList_0.Count;
     for (int i = index1; i <= index2; i++)
     {
         series.method_0(this[i]);
     }
     return series;
 }
Ejemplo n.º 2
0
 public Series LogReturn(int index1, int index2)
 {
     Series series = new Series(this.Nrows);
     double[] array = new double[this.Nrows];
     for (int i = index1 + 1; i <= index2; i++)
     {
         for (int j = 0; j < this.Nrows; j++)
         {
             array[j] = Math.Log(this.sortedList_0.Values[i][j] / this.sortedList_0.Values[i - 1][j]);
         }
         series.Add(this.sortedList_0.Values[i].DateTime, array);
     }
     return series;
 }
Ejemplo n.º 3
0
 public Series Complete()
 {
     Series series = new Series(this.Nrows);
     int count = this.sortedList_0.Count;
     for (int i = 0; i < count; i++)
     {
         if (this[i].IsComplete())
         {
             series.method_0(this[i]);
         }
     }
     return series;
 }