public ActionResult SolutionOnVariant()
        {
            OnVariant   variant = new OnVariant();
            ResultModel result  = new ResultModel();

            result.resultAlgorithmValda    = AlgorithmWald.ToSolve(variant.matrix);
            result.resultMaximeCriterion   = MaximeCriterion.ToSolve(variant.matrix);
            result.resultLaplacesAlgorithm = Laplace_sAlgorithm.ToSolve(variant.matrix);
            result.resultBayesAlgorithm    = BayesAlgorithm.ToSolve(variant.matrix, variant.probabilities);
            result.resultAlgorithmHurwitz  = AlgorithmHurwitz.ToSolve(variant.y, variant.matrix);
            result.resultAlgorithmSevidge  = AlgorithmSevidge.ToSolve(variant.matrix);

            return(View("Solution", result));
        }
        public ActionResult Solution(InputDataModel input, List <double> elemMatrix, List <double> probability)
        {
            double numberProbability = 0;

            for (int i = 0; i < probability.Count; i++)
            {
                numberProbability += probability[i];
            }
            if (ModelState.IsValid && numberProbability == 1)
            {
                double[,] matrix = ListToDoubleArray(input, elemMatrix);
                ResultModel result = new ResultModel();
                result.resultAlgorithmValda    = AlgorithmWald.ToSolve(matrix);
                result.resultMaximeCriterion   = MaximeCriterion.ToSolve(matrix);
                result.resultLaplacesAlgorithm = Laplace_sAlgorithm.ToSolve(matrix);
                result.resultBayesAlgorithm    = BayesAlgorithm.ToSolve(matrix, probability);
                result.resultAlgorithmHurwitz  = AlgorithmHurwitz.ToSolve(input.y, matrix);
                result.resultAlgorithmSevidge  = AlgorithmSevidge.ToSolve(matrix);
                return(View(result));
            }
            return(View("Error"));
        }