Exemplo n.º 1
0
        public static TwoByTwo GetInstance(Dictionary <string, int> cidToVal1, Dictionary <string, int> cidToVal2, bool rememberCases)
        {
            TwoByTwo twoByTwo = rememberCases ? (TwoByTwo) new TwoByTwoCases() : (TwoByTwo) new TwoByTwoCounts();

            twoByTwo.Var1 = null;
            twoByTwo.Var2 = null;
            twoByTwo.TabulateCounts(cidToVal1, cidToVal2);
            return(twoByTwo);
        }
        public static TwoByTwo GetInstance(Dictionary <string, int> cidToVal1, Dictionary <string, int> cidToVal2)
        {
            TwoByTwo twoByTwo = new TwoByTwo();

            twoByTwo.Var1 = null;
            twoByTwo.Var2 = null;
            twoByTwo.TabulateCounts(cidToVal1, cidToVal2);
            return(twoByTwo);
        }
Exemplo n.º 3
0
        public static TwoByTwo GetInstance(KeyValuePair <string, Dictionary <string, int> > varAndCidToVal1, KeyValuePair <string, Dictionary <string, int> > varAndCidToVal2, bool rememberCases)
        {
            TwoByTwo twoByTwo = rememberCases ? (TwoByTwo) new TwoByTwoCases() : (TwoByTwo) new TwoByTwoCounts();

            twoByTwo.Var1 = varAndCidToVal1.Key;
            twoByTwo.Var2 = varAndCidToVal2.Key;
            twoByTwo.TabulateCounts(varAndCidToVal1.Value, varAndCidToVal2.Value);
            return(twoByTwo);
        }
        public static TwoByTwo GetInstance(KeyValuePair <string, Dictionary <string, int> > varAndCidToVal1, KeyValuePair <string, Dictionary <string, int> > varAndCidToVal2)
        {
            TwoByTwo twoByTwo = new TwoByTwo();

            twoByTwo.Var1 = varAndCidToVal1.Key;
            twoByTwo.Var2 = varAndCidToVal2.Key;
            twoByTwo.TabulateCounts(varAndCidToVal1.Value, varAndCidToVal2.Value);
            return(twoByTwo);
        }