コード例 #1
0
        public DegreeOfAuthorshipAlgorithm(WeightingType sourceOfWeightings)
        {
            Name += "-" + sourceOfWeightings.ToString();
            switch (sourceOfWeightings)
            {
            case WeightingType.Original:
                Guid = new Guid("59a9d58a-8382-43b1-a438-ddb9a154dda9");
                firstAuthorWeighting = 1.098d;
                delivieresWeighting  = 0.164d;
                acceptanceWeighting  = -0.321d;
                constantSummand      = 3.293d;
                break;

            case WeightingType.UniversalTOSEM:
                Guid = new Guid("5C11F944-B959-45D2-80DB-EAB141437631");
                firstAuthorWeighting = 0.962d;
                delivieresWeighting  = 0.213d;
                acceptanceWeighting  = -0.273d;
                constantSummand      = 3.223d;
                break;

            default:
                throw new ArgumentException("Unknown type of weighting " + sourceOfWeightings);
            }
            Init();
        }