public BWResult(WeightingType aWT, string aS, string aSN, string r) { wt = aWT; sFile = aS; snFile = aSN; result = r; }
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(); }
public BWArgs(WeightingType aWT, string aS, string aSN) { wt = aWT; sFile = aS; snFile = aSN; }