﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
688	New optional method marginalDraw in non linear filters	Víctor de Buen Remiro	Víctor de Buen Remiro	"It's needed a new optional method in non linear filters with next default behaviour

{{{
  Matrix marginalDraw(Real unused)
  {
    SetCol(For(1,Card(_.colNames),Real(Real i) { ? })
  };
}}}

This method will be called just before to call draw method of corresponding internal non linear block in order to select which parameters will be drawn. It will return a column matrix with marginal sampling in selected rows and {{{?}}} in other ones that will be sampled by non linear block in the standard way.

You can use it to apply marginal simulation to some selected parameters. For example, in order to apply a mixed-discrete distribution with 10% of probability of zero for all parameters:

{{{
  Matrix marginalDraw(Real unused)
  {
    SetCol(For(1,Card(_.colNames),Real(Real i) 
    { 
      If(Rand(0,1)<.10, 0, ?)
    }))
  };
}}}
"	enhancement	closed	highest	BSR hierarchy and priors	Math	1.1.7	blocker	fixed	BSR, non lineal filter	
