Exemple #1
0
 public bool isLowerThan(DataList list2)
 {
     List<double> l2 = list2.get();
     if (list.Count != l2.Count)
         return false;
     for (int i = 0; i < list.Count; i++)
     {
         if (list[i] >= l2[i])
             return false;
     }
     return true;
 }
Exemple #2
0
 public EmaCummDataList(int size)
     : base(size)
 {
     listdata = new DataList(size);
 }
Exemple #3
0
 // if the end of list1 is below list2
 // superset of isLowerThan()==true
 public bool isCrossBelow(DataList list2)
 {
     List<double> l2 = list2.get();
     if (list.Count != l2.Count)
         return false;
     for (int i = list.Count - 1; i >= 0; i--)
     {
         // only care about last value above or below?!
         if (list[i] < l2[i])
             return true;
         else
             return false;
     }
     return false;
 }