public static EvaluationResultsFisher GetInstance(ModelEvaluatorDiscreteFisher modelEvaluatorDiscreteFisher, List <Score> nullScores, Score altScore, TwoByTwo fishers2by2) { double pValue = fishers2by2.FisherExactTest; int[] fisherCounts = fishers2by2.ToOneDArray(); return(new EvaluationResultsFisher(modelEvaluatorDiscreteFisher, nullScores, altScore, fisherCounts, 1, pValue)); }
new public static ModelEvaluatorDiscrete GetInstance(string nameAndParameters, ModelScorer scorer) { nameAndParameters = nameAndParameters.ToLower(); if (nameAndParameters.StartsWith(ModelEvaluatorDiscreteConditional.BaseName.ToLower())) { return(ModelEvaluatorDiscreteConditional.GetInstance(nameAndParameters.Substring(ModelEvaluatorDiscreteConditional.BaseName.Length), scorer)); } else if (nameAndParameters.StartsWith(ModelEvaluatorDiscreteJoint.BaseName.ToLower())) { return(ModelEvaluatorDiscreteJoint.GetInstance(nameAndParameters.Substring(ModelEvaluatorDiscreteJoint.BaseName.Length), scorer)); } else if (nameAndParameters.Equals(ModelEvaluatorDiscreteFisher.BaseName.ToLower())) { return(ModelEvaluatorDiscreteFisher.GetInstance(scorer.PhyloTree.LeafCollection)); } throw new ArgumentException("Cold not parse " + nameAndParameters + " into a ModelEvaluatorDiscrete."); }