public void Sibs608401Vs608405( )
        {
            Int16[] surveyYears = { 1992, 1993, 1994, 1996, 1998, 2000, 2002, 2004, 2006, 2008 };
            DateTime?[] datesA = { new DateTime(1980, 7, 15), new DateTime(1986, 7, 15), null, new DateTime(1994, 5, 15), null, null, null, new DateTime(1989, 7, 15), null, new DateTime(1999, 7, 15) };
            DateTime?[] datesB = { null, null, null, null, null, null, null, new DateTime(1989, 7, 15), new DateTime(2005, 12, 15), new DateTime(1999, 7, 15) };

            TrendLineDate trendA = new TrendLineDate(surveyYears, datesA);
            TrendLineDate trendB = new TrendLineDate(surveyYears, datesB);
            TrendComparisonDate comparison = new TrendComparisonDate(trendA, trendB);
            AgreementCountExcludingNulls(2, comparison);
            AgreementCountOfNulls(4, comparison);
            AgreementProportionExcludingNulls(1f, comparison);
            CountOfNullZeros(2, comparison);
            CountOfNullSingles(4, comparison);
            CountOfNullDoubles(4, comparison);
            DisagreementCountIncludingNulls(4, comparison);
            LastMutualNonNullPointsAgree(true, comparison);
            LastNonMutualNullPointsYear(2008, comparison);
        }
예제 #2
0
        private Int32 FromBabyDaddyLeftHHDate( LinksDataSet.tblRelatedStructureRow drRelated, LinksDataSet.tblBabyDaddyDataTable dtBabyDaddySubject1, LinksDataSet.tblBabyDaddyDataTable dtBabyDaddySubject2, Int16 extendedID )
        {
            const MarkerType markerType = MarkerType.BabyDaddyLeftHHDate;
            const bool fromMother = true;
            Int16[] surveyYears = ItemYears.BabyDaddyLeftHHDate;
            DateTime?[] dates1 = BabyDaddy.RetrieveLeftHHDates(drRelated.SubjectTag_S1, surveyYears, dtBabyDaddySubject1);
            DateTime?[] dates2 = BabyDaddy.RetrieveLeftHHDates(drRelated.SubjectTag_S2, surveyYears, dtBabyDaddySubject2);

            TrendLineDate trend1 = new TrendLineDate(surveyYears, dates1);
            TrendLineDate trend2 = new TrendLineDate(surveyYears, dates2);
            TrendComparisonDate comparison = new TrendComparisonDate(trend1, trend2);
            MarkerEvidence mzEvidence = DetermineShareBabyDaddy.Date(comparison);
            MarkerEvidence biodadEvidence = mzEvidence;
            return AddMarkerRow(extendedID, drRelated.ID, markerType, comparison.LastNonMutualNullPointsYear, mzEvidence, biodadEvidence, fromMother);
        }
        public void Sibs608401Vs608405( )
        {
            Int16[] surveyYears = { 1992, 1993, 1994, 1996, 1998, 2000, 2002, 2004, 2006, 2008 };
            DateTime?[] datesA = { new DateTime(1980, 7, 15), new DateTime(1986, 7, 15), null, new DateTime(1994, 5, 15), null, null, null, new DateTime(1989, 7, 15), null, new DateTime(1999, 7, 15) };
            DateTime?[] datesB = { null, null, null, null, null, null, null, new DateTime(1989, 7, 15), new DateTime(2005, 12, 15), new DateTime(1999, 7, 15) };

            TrendLineDate trendA = new TrendLineDate(surveyYears, datesA);
            TrendLineDate trendB = new TrendLineDate(surveyYears, datesB);
            TrendComparisonDate comparison = new TrendComparisonDate(trendA, trendB);
            Date(MarkerEvidence.Supports, comparison);
        }