0

I want to do some statistical calculations in matlab, so my numbers are very small(between 0 and 1) with massive multiplications which makes them even smaller I was using double type for my work but I noticed it only stores 5 digits of my number and for larger numbers it stores the power of 10. So it sure leads to a really big error in the final answers. How can I use more accurate number types? Thanks for the help

4

1 に答える 1

7

ログスペースで作業することを検討しましたか? x = exp( -y )指数で各数値を表しますy。指数のy範囲が 0 ~infになり、ダイナミック レンジに対してより堅牢になるはずです。

于 2013-03-19T11:51:23.717 に答える