wolffd@0: function engine = set_params(engine, varargin) wolffd@0: % SET_PARAMS Modify parameters of the inference engine wolffd@0: % engine = set_params(engine, 'param1',val1, 'param2',val2, ...) wolffd@0: % wolffd@0: % Parameter names are listed below. wolffd@0: % wolffd@0: % max_iter - max. num. iterations wolffd@0: % momentum - weight assigned to old message in convex combination wolffd@0: % (useful for damping oscillations) wolffd@0: % tol - tolerance used to assess convergence wolffd@0: % verbose - 1 means print error at every iteration [0] wolffd@0: wolffd@0: [engine.max_iter, engine.momentum, engine.tol, engine.verbose] = ... wolffd@0: process_options('max_iter', engine.max_iter, 'momentum', engine.momentum, ... wolffd@0: 'tol', engine.tol, 'verbose', engine.verbose);