Beispiel #1
0
        private double WspCP(string pstring, Moment[] par)
        {
            switch (pstring)
            {
            case "pt":
                return(Oka.wspCPPT(par[1].Real, par[2].Real));

            case "ptx":
                return(Oka.wspCPPTX(par[1].Real, par[2].Real, par[3].Real));

            case "ph":
                return(Oka.wspCPPH(par[1].Real, par[2].Real));

            case "ps":
                return(Oka.wspCPPS(par[1].Real, par[2].Real));

            case "ptpeff":
                return(Oka.wspCPEXPANSIONPTPEFF(par[1].Real, par[2].Real, par[3].Real, par[4].Real));

            case "ptxpeff":
                return(Oka.wspCPEXPANSIONPTXPEFF(par[1].Real, par[2].Real, par[3].Real, par[4].Real, par[5].Real));

            case "hs":
                return(Oka.wspCPHS(par[1].Real, par[2].Real));

            case "sst":
                return(Oka.wspCPSST(par[1].Real));

            case "swt":
                return(Oka.wspCPSWT(par[1].Real));

            case "stx":
                return(Oka.wspCPSTX(par[1].Real, par[2].Real));

            case "mspt":
                return(Oka.wspCPMSPT(par[1].Real, par[2].Real));
            }
            return(double.NaN);
        }