public void MeanSumTest() {
   var sum = new MeanSum();
   sum.Terms.Add(new MeanConst());
   sum.Terms.Add(new MeanConst());
   TestMeanFunction(sum, 0,
     new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
     new double[][]
       {
         new double[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
         new double[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
       }
   );
   sum = new MeanSum();
   sum.Terms.Add(new MeanConst());
   sum.Terms.Add(new MeanConst());
   TestMeanFunction(sum, 1,
     new double[] { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 },
     new double[][]
       {
         new double[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
         new double[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
       }
   );
 }
Exemplo n.º 2
0
 private MeanSum(MeanSum original, Cloner cloner)
     : base(original, cloner)
 {
     this.terms             = cloner.Clone(original.terms);
     this.numberOfVariables = original.numberOfVariables;
 }
Exemplo n.º 3
0
 private MeanSum(MeanSum original, Cloner cloner)
   : base(original, cloner) {
   this.terms = cloner.Clone(original.terms);
   this.numberOfVariables = original.numberOfVariables;
 }