コード例 #1
0
        public void AnalyzeTest()
        {
            // dataSet is null
            {
                string parameterName = "dataSet";

                ArgumentExceptionAssert.Throw(
                    () =>
                {
                    MultipleCorrespondence.Analyze(
                        null);
                },
                    expectedType: typeof(ArgumentNullException),
                    expectedPartialMessage:
                    ArgumentExceptionAssert.NullPartialMessage,
                    expectedParameterName: parameterName);
            }

            // dataSet must have positive marginal column sums
            {
                var STR_EXCEPT_GDA_MCA_NON_POSITIVE_MARGINAL_SUMS =
                    ImplementationServices.GetResourceString(
                        "STR_EXCEPT_GDA_MCA_NON_POSITIVE_MARGINAL_SUMS");

                string parameterName = "dataSet";

                CategoricalVariable color = new("COLOR")
                {
                    { 0, "Red" },
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="TestableMultipleCorrespondence00" /> class.
 /// </summary>
 TestableMultipleCorrespondence00() : base(
         multipleCorrespondence: MultipleCorrespondence.Analyze(
             dataSet),
         individuals: TestableIndividuals00.Get(),
         categories: TestableCategories00.Get()
         )
 {
 }