コード例 #1
0
        public void Test_GetRowVector_ObjectBasedVersion_UseRowIndex()
        {
            // Given
            var expectedVector = new DataVector <object>(new object[] { "a1.1", 1, "b1.2", 2 }, _subject.ColumnNames);

            // When
            var actualVector = _subject.GetRowVector(0);

            // Then
            Assert.AreEqual(expectedVector, actualVector);
        }
コード例 #2
0
 public bool ContentEquals(IDataFrame other)
 {
     for (int i = 0; i < RowCount; i++)
     {
         var row      = GetRowVector(i);
         var otherRow = other.GetRowVector(i);
         if (!row.Equals(otherRow))
         {
             return(false);
         }
     }
     return(true);
 }