예제 #1
0
 auto measure(
     const UniformSampler<Space<T, Scaled<M, W>>, Bounds>& sampler,
     const Space<T, Scaled<M, W>>& space)
 {
     return measure(
         static_cast<const UniformSampler<Space<T, M>, Bounds>&>(sampler),
         space.space()) * space.weight();
 }
예제 #2
0
 UniformSampler(const Space<T, Scaled<M, W>>& space, const Bounds& bounds)
     : Base(space.space(), bounds)
 {
 }