Пример #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.");
            }
        }
Пример #2
0
 public static DNormal PointMass(double mean)
 {
     // Construct a Gaussian with very small width.
     return(DNormal.FromGaussian(Gaussian.PointMass(mean)));
 }