protected OnColumnsQuantile00() :
     base(
         expected: new DoubleMatrixState[4] {
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         new double[6] { 1, 13, 19.33333333, 25, 1, 25 },
         numberOfRows: 2,
         numberOfColumns: 3),
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         new double[6] { 26, 38, 44.33333333, 50, 26, 50 },
         numberOfRows: 2,
         numberOfColumns: 3),
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         new double[6] { 51, 63, 69.33333333, 75, 51, 75 },
         numberOfRows: 2,
         numberOfColumns: 3),
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         new double[6] { 76, 88, 94.33333333, 100, 76, 100 },
         numberOfRows: 2,
         numberOfColumns: 3)
 },
         data: TestableDoubleMatrix52.Get(),
         probabilities: DoubleMatrix.Dense(2, 3,
                                           new double[6] { .005, .5, .75, .999, 0, 1 }),
         dataOperation: DataOperation.OnColumns
         )
 {
 }
 protected OnColumnsQuantile01() :
     base(
         expected: new DoubleMatrixState[4] {
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         TestableDoubleMatrix52.Get().AsDense[":", 0].AsColumnMajorDenseArray(),
         numberOfRows: TestableDoubleMatrix52.Get().AsDense.NumberOfRows,
         numberOfColumns: 1),
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         TestableDoubleMatrix52.Get().AsDense[":", 1].AsColumnMajorDenseArray(),
         numberOfRows: TestableDoubleMatrix52.Get().AsDense.NumberOfRows,
         numberOfColumns: 1),
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         TestableDoubleMatrix52.Get().AsDense[":", 2].AsColumnMajorDenseArray(),
         numberOfRows: TestableDoubleMatrix52.Get().AsDense.NumberOfRows,
         numberOfColumns: 1),
     new DoubleMatrixState(
         asColumnMajorDenseArray:
         TestableDoubleMatrix52.Get().AsDense[":", 3].AsColumnMajorDenseArray(),
         numberOfRows: TestableDoubleMatrix52.Get().AsDense.NumberOfRows,
         numberOfColumns: 1)
 },
         data: TestableDoubleMatrix52.Get(),
         probabilities: GetKnownProbabilities(
             TestableDoubleMatrix52.Get().AsDense.NumberOfRows),
         dataOperation: DataOperation.OnColumns
         )
 {
 }
Beispiel #3
0
 protected OnAllQuantile00() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[4] { 1.0, 50.5, 75.583333, 100.0 },
             numberOfRows: 2,
             numberOfColumns: 2),
         data: TestableDoubleMatrix52.Get(),
         probabilities: DoubleMatrix.Dense(2, 2, new double[4] { .005, .5, .75, .999 }))
 {
 }
Beispiel #4
0
 protected OnAllQuantile01() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray:
             TestableDoubleMatrix52.Get().AsDense.AsColumnMajorDenseArray(),
             numberOfRows: TestableDoubleMatrix52.Get().AsDense.Count,
             numberOfColumns: 1),
         data: TestableDoubleMatrix52.Get(),
         probabilities: GetKnownProbabilities(
             TestableDoubleMatrix52.Get().AsDense.Count))
 {
 }