필터 지우기
필터 지우기

If statement for when matrix is close to singular

조회 수: 7 (최근 30일)
Jacob Thompson
Jacob Thompson 2020년 9월 4일
답변: David Hill 2020년 9월 4일
Hi all,
I'm running an MCMC to estimate a model and for several parameter draws I get a warning that a matrix is close to singular or badly scaled when trying to invert it. I want to embed an if-statement in order to discard such draws and end evaluation of the function to speed up my MCMC and focus only on those parameters with high density.
Is there a way I can do this?

답변 (1개)

David Hill
David Hill 2020년 9월 4일

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by