コード例 #1
0
 protected OnRowsDataIsColumnQuantile() :
     base(
         expected: new DoubleMatrixState[3] {
     new DoubleMatrixState(
         asColumnMajorDenseArray: new double[1] {
         TestableDoubleMatrix20.Get().AsDense[0]
     },
         numberOfRows: 1,
         numberOfColumns: 1),
     new DoubleMatrixState(
         asColumnMajorDenseArray: new double[1] {
         TestableDoubleMatrix20.Get().AsDense[1]
     },
         numberOfRows: 1,
         numberOfColumns: 1),
     new DoubleMatrixState(
         asColumnMajorDenseArray: new double[1] {
         TestableDoubleMatrix20.Get().AsDense[2]
     },
         numberOfRows: 1,
         numberOfColumns: 1)
 },
         data: TestableDoubleMatrix20.Get(),
         probabilities: DoubleMatrix.Identity(1),
         dataOperation: DataOperation.OnRows
         )
 {
 }
コード例 #2
0
 protected OnRowsDataIsColumnSumOfSquaredDeviations() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[3],
             numberOfRows: 3,
             numberOfColumns: 1),
         data: TestableDoubleMatrix20.Get(),
         dataOperation: DataOperation.OnRows
         )
 {
 }
コード例 #3
0
 TypicalDoubleMatrixDoubleMatrixMultiplication() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[2] { -20, -32 },
             numberOfRows: 2,
             numberOfColumns: 1),
         left: TestableDoubleMatrix16.Get(),
         right: TestableDoubleMatrix20.Get()
         )
 {
 }
コード例 #4
0
 protected OnRowsDataIsColumnMean() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[3] { -5, -4, -3 },
             numberOfRows: 3,
             numberOfColumns: 1),
         data: TestableDoubleMatrix20.Get(),
         dataOperation: DataOperation.OnRows
         )
 {
 }
コード例 #5
0
 protected OnRowsDataIsColumnUnadjustedSkewness() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[3] { Double.NaN, Double.NaN, Double.NaN },
             numberOfRows: 3,
             numberOfColumns: 1),
         data: TestableDoubleMatrix20.Get(),
         adjustForBias: false,
         dataOperation: DataOperation.OnRows
         )
 {
 }
コード例 #6
0
 protected OnRowsDataIsColumnMax() :
     base(
         expected: new IndexValuePair[3] {
     new IndexValuePair() { index = 0, value = -5 },
     new IndexValuePair() { index = 0, value = -4 },
     new IndexValuePair() { index = 0, value = -3 },
 },
         data: TestableDoubleMatrix20.Get(),
         dataOperation: DataOperation.OnRows
         )
 {
 }
コード例 #7
0
 protected OnRowsDataIsColumnUnadjustedCovariance() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[9],
             numberOfRows: 3,
             numberOfColumns: 3),
         data: TestableDoubleMatrix20.Get(),
         adjustForBias: false,
         dataOperation: DataOperation.OnRows
         )
 {
 }
コード例 #8
0
 protected OnAllUnadjustableKurtosis() :
     base(
         expected: new ArgumentException(
             message: (string)Reflector.ExecuteStaticMember(
                 typeof(ImplementationServices),
                 "GetResourceString",
                 new string[] { "STR_EXCEPT_STA_KURTOSIS_ADJUST_FOR_BIAS_UNDEFINED" }),
             paramName: null),
         data: TestableDoubleMatrix20.Get(),
         adjustForBias: true
         )
 {
 }
コード例 #9
0
 protected OnRowsDataIsColumnAdjustedVariance() :
     base(
         expected: new ArgumentException(
             message: (string)Reflector.ExecuteStaticMember(
                 typeof(ImplementationServices),
                 "GetResourceString",
                 new string[] { "STR_EXCEPT_STA_VARIANCE_ADJUST_FOR_BIAS_UNDEFINED" }),
             paramName: null),
         data: TestableDoubleMatrix20.Get(),
         adjustForBias: true,
         dataOperation: DataOperation.OnRows
         )
 {
 }
 TypicalComplexMatrixDoubleMatrixMultiplication() :
     base(
         expected: new ComplexMatrixState(
             asColumnMajorDenseArray: new Complex[2]
 {
     new Complex(-20, -20),
     new Complex(-32, -32)
 },
             numberOfRows: 2,
             numberOfColumns: 1),
         left: TestableComplexMatrix16.Get(),
         right: TestableDoubleMatrix20.Get()
         )
 {
 }
コード例 #11
0
 protected OnRowsDataIsColumnCorrelation() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[9]
 {
     Double.NaN,
     Double.NaN,
     Double.NaN,
     Double.NaN,
     Double.NaN,
     Double.NaN,
     Double.NaN,
     Double.NaN,
     Double.NaN
 },
             numberOfRows: 3,
             numberOfColumns: 3),
         data: TestableDoubleMatrix20.Get(),
         dataOperation: DataOperation.OnRows
         )
 {
 }