blutooth / pmtk

Automatically exported from code.google.com/p/pmtk
0 stars 0 forks source link

MvtDist.sample references invalid variable #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Sample from a MvtDist.

What is the expected output? What do you see instead?
I expect to see the sampled vector, but instead I see
>> mvnparams_dist(1).marginal('mu').sample(1)
??? Undefined function or variable 'obj'.

Error in ==> MvtDist>MvtDist.sample at 66
      checkParamsAreConst(obj)

This is occurring because of the following code
     function X = sample(m, n)
      % X(i,:) = sample for i=1:n
      checkParamsAreConst(obj)
is checking obj instead of m.

What version of the product are you using? On what operating system?
I'm using the latest revision from subversion as of 7th Dec.

Please provide any additional information below.
Just change the variable name and the problem is fixed..

Original issue reported on code.google.com by nimalan....@gmail.com on 8 Dec 2008 at 7:04