public SRMModel(SRM srm, IMessage msg) { this.srm = srm; conf = new EMConf(); conf.StopCond = StopCondition.PARAMETER; status = ModelStatus.NotIntialized; }
public void InitAll(SRMData data, EMConf emconf, IMessage msg) { foreach (HErlangEMSRM model in allmodels) { EM em = new EM(model, emconf, msg); em.Initialize(data); maxmodel = model; } }
public HErlangAll(int ndim) : base(ndim + "-HyperErlang SRGM", 2 * ndim) { this.ndim = ndim; maxconf = new EMConf(); allmodels = new List <HErlangEMSRM>(); int[] list = new int[ndim]; MakeShape(0, list, 1, ndim); maxmodel = allmodels[0]; }
public void FitAll(SRMData data, EMConf emconf, IMessage msg) { maxllf = double.MinValue; foreach (HErlangEMSRM model in allmodels) { EM em = new EM(model, emconf, msg); em.Fit(data); if (emconf.Llf > maxllf) { maxllf = emconf.Llf; maxmodel = model; maxconf.Set(emconf); } } emconf.Set(maxconf); }
public SRMConsoleMessage(SRM srm, EMConf emparam) { this.srm = srm; this.emparam = emparam; }