new public static ModelEvaluatorGaussian GetInstance(string nameAndParameters, ModelScorer scorer) { IDistributionSingleVariable nullDistn = DistributionGaussianConditional.GetSingleVariableInstance(nameAndParameters); DistributionGaussianConditional altDistn = DistributionGaussianConditional.GetInstance(nameAndParameters); return(new ModelEvaluatorGaussian(SpecialFunctions.CreateSingletonList(nullDistn), altDistn, scorer)); }
protected EvaluationResults CreateDummyResults(int predNonMissing, int targNonMissing, int globalNonMissingCount) { IDistributionSingleVariable nullDistn = NullDistns[0]; OptimizationParameterList nullParams = nullDistn.GetParameters(); foreach (OptimizationParameter param in nullParams) { param.Value = double.NegativeInfinity; } Score nullScore = Score.GetInstance(0, nullParams, nullDistn); OptimizationParameterList altParams = AltDistn.GetParameters(); foreach (OptimizationParameter param in altParams) { param.Value = double.NegativeInfinity; } Score altScore = Score.GetInstance(0, altParams, AltDistn); return(EvaluationResultsGaussian.GetInstance(this, nullScore, altScore, predNonMissing, targNonMissing, globalNonMissingCount, ChiSquareDegreesOfFreedom)); }