Example #1
0
        public new static IKEPDist FromMatlabStruct(MatlabStruct s)
        {
            string className = s.GetString("className");

            if (className.Equals(DNormal.MATLAB_CLASS))
            {
                return(DNormal.FromMatlabStruct(s));
            }
            else if (className.Equals(DBeta.MATLAB_CLASS))
            {
                return(DBeta.FromMatlabStruct(s));
            }
            else
            {
                throw new ArgumentException("unknown distribution class.");
            }
        }
Example #2
0
 public static DBeta PointMass(double mean)
 {
     return(DBeta.FromBeta(Beta.PointMass(mean)));
 }