public void GetLagWS_CDF_test()
        {
            double thisMinWS  = 0.454f;
            double thisLastWS = 6.105f;
            double thisWS_Int = 0.1128f;

            MCP thisMCP = new MCP();

            thisMCP.WS_BinWidth = 1;

            thisMCP.FindSD_ChangeInWS();
            double[] This_CDF = thisMCP.GetLagWS_CDF(thisLastWS, thisMinWS, thisWS_Int);

            Assert.AreEqual(This_CDF[50], 0.49457, 0.01, "Wrong Last WS CDF");
            Assert.AreEqual(This_CDF[20], 0.0003113, 0.01, "Wrong Last WS CDF");
            Assert.AreEqual(This_CDF[90], 0.99999, 0.01, "Wrong Last WS CDF");
        }
        public void FindSD_ChangeInWS_test()
        {
            Continuum thisInst = new Continuum("");

            string Filename = testingFolder + "\\MCP testing.cfm";

            thisInst.Open(Filename);
            Met thisMet = thisInst.metList.metItem[0];
            MCP thisMCP = thisMet.mcp;

            thisMCP.WS_BinWidth = 1;
            thisMCP.FindSD_ChangeInWS();

            Assert.AreEqual(thisMCP.SD_WS_Lag[0], 0.823, 0.01, "Wrong Last WS Standard deviation");
            Assert.AreEqual(thisMCP.SD_WS_Lag[1], 1.138, 0.01, "Wrong Last WS Standard deviation");
            Assert.AreEqual(thisMCP.SD_WS_Lag[2], 0.97996, 0.01, "Wrong Last WS Standard deviation");
            Assert.AreEqual(thisMCP.SD_WS_Lag[3], 1.0479, 0.01, "Wrong Last WS Standard deviation");

            thisInst.Close();
        }