The C++ standard says nothing about how implementations should manage template i nstantiation, so every implementation handles instantiation in its ow...
分类:
编程语言 时间:
2014-08-10 10:18:20
阅读次数:
300
这部分介绍 sampling 方法,书上也称为 particle-based
method,这是因为每一个从分布中采集到的样本可以看成是一个 particle(instantiation of r.v.),而我们的 inference
借助了 particles。比较简单的问题就是 forward ...
分类:
其他好文 时间:
2014-06-08 22:50:20
阅读次数:
355
工厂方法和原型模式一样,也是属于创建对象的设计模式。
官方定义:
“Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.”
...
分类:
其他好文 时间:
2014-05-18 06:37:51
阅读次数:
257