class="keyword">function</span> [dd dy dh] = conT(deriv, policy, m, s, delta)
</pre><h2>Code<a name="2"></a></h2><pre class="codeinput"><span class="keyword">if</span> nargin &lt; 5; delta = 1e-4; <span class="keyword">end</span> <span class="comment">% default value</span>

<span class="comment">% if no input arguments, create random policy parameters and check derivatives</span>
<span class="keyword">if</span> nargin == 0
  D = 2;
  d = 3;
  policy.w = randn(D,d);
  policy.b = randn(D,1);
  m = randn(d,1)