Ejemplo n.º 1
0
 protected OnRowsNotAdjustedCovariance00() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray:
             new double[25] {
     32.2500,
     -17.7500,
     -19.0000,
     10.7500,
     5.0000,
     -17.7500,
     20.2500,
     23.0000,
     -19.2500,
     -4.0000,
     -19.0000,
     23.0000,
     26.5000,
     -23.0000,
     -4.7500,
     10.7500,
     -19.2500,
     -23.0000,
     22.2500,
     4.0000,
     5.0000,
     -4.0000,
     -4.7500,
     4.0000,
     1.2500
 },
             numberOfRows: 5,
             numberOfColumns: 5
             ),
         data: TestableDoubleMatrix45.Get(),
         adjustForBias: false,
         dataOperation: DataOperation.OnRows
         )
 {
 }
 protected OnRowsAdjustedCovariance00() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray:
             new double[25] {
     43.0000,
     -23.6666666667,
     -25.333333333333,
     14.333333333333,
     6.6666666667,
     -23.6666666667,
     27.0000,
     30.6666666667,
     -25.6666666667,
     -5.333333333333,
     -25.333333333333,
     30.6666666667,
     35.333333333333,
     -30.6666666667,
     -6.333333333333,
     14.333333333333,
     -25.6666666667,
     -30.6666666667,
     29.6666666667,
     5.333333333333,
     6.6666666667,
     -5.333333333333,
     -6.333333333333,
     5.333333333333,
     1.6666666667
 },
             numberOfRows: 5,
             numberOfColumns: 5
             ),
         data: TestableDoubleMatrix45.Get(),
         adjustForBias: true,
         dataOperation: DataOperation.OnRows
         )
 {
 }
Ejemplo n.º 3
0
 protected OnRowsCorrelation00() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray:
             new double[25] {
     1.00000000000000,
     -0.69457793721244,
     -0.64992883353843,
     0.40130872048658,
     0.78749923095816,
     -0.69457793721244,
     1.00000000000000,
     0.99286999263187,
     -0.90688707511655,
     -0.79504639199993,
     -0.64992883353843,
     0.99286999263187,
     1.00000000000000,
     -0.94719607858054,
     -0.82530726124983,
     0.40130872048658,
     -0.90688707511655,
     -0.94719607858054,
     1.00000000000000,
     0.75847274102396,
     0.78749923095816,
     -0.79504639199993,
     -0.82530726124983,
     0.75847274102396,
     1.00000000000000
 },
             numberOfRows: 5,
             numberOfColumns: 5
             ),
         data: TestableDoubleMatrix45.Get(),
         dataOperation: DataOperation.OnRows
         )
 {
 }