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."); } }
public static DBeta PointMass(double mean) { return(DBeta.FromBeta(Beta.PointMass(mean))); }