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

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

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

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

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

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

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

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

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