locked
VectorGaussian distribution GetMeanAndVariance? RRS feed

  • Question

  • let a = engine.Infer<VectorGaussian> b

    I got "the matrix is singular" when I do

          let mean =  Vector.Zero n

          let variance = PositiveDefiniteMatrix.Identity n

        a.GetMeanAndVariance (mean, variance)   

    However it works all fine if I do:

        let mean = a.GetMean()

          let variance = a.GetVariance()


    • Edited by colinfang Wednesday, October 8, 2014 5:09 PM
    Wednesday, October 8, 2014 5:08 PM

All replies

  • What is 'a'?
    Thursday, October 9, 2014 7:04 PM
    Owner
  • let a = engine.Infer<VectorGaussian> b

    I will update the question if I manage to find a minimal example.



    • Edited by colinfang Thursday, October 9, 2014 8:50 PM
    Thursday, October 9, 2014 8:50 PM
  • What is the value of 'a' if you print it out?
    Thursday, October 9, 2014 10:15 PM
    Owner