fitNaiveBayes vs NaiveBayes.fit

时间:2014-03-21 09:27:43

标签: matlab

当我想使用fitNaiveBayes时,我收到此错误:

Undefined function 'fitNaiveBayes' for input arguments of type 'double'.

我也试过这个:

which fitNaiveBayes

'fitNaiveBayes' not found.

但我可以使用NaiveBayes.fit

我的问题是:它们之间有什么区别吗?


我的matlab版本是R2011b(7.13.0.564)

1 个答案:

答案 0 :(得分:0)

这似乎是一个更新的功能。 NaiveBayes.fit的在线帮助说:

  

注意:将来的版本中将删除fit。使用fitNaiveBayes   代替。

输入和选项在我看来是相同的。