diff options
author | Patrick Simianer <p@simianer.de> | 2011-09-25 22:59:24 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-25 22:59:24 +0200 |
commit | 899a30eb4e53d539ee0b846f38d7524fec811864 (patch) | |
tree | 77d02d7c6746b8d5249bca9900fdaef4c15ccf77 /dtrain/ksampler.h | |
parent | ec8e1b92b0a898754eb11d72741c8af39854c706 (diff) |
size_t -> unsigned
Diffstat (limited to 'dtrain/ksampler.h')
-rw-r--r-- | dtrain/ksampler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dtrain/ksampler.h b/dtrain/ksampler.h index 08bf1498..17b0ba56 100644 --- a/dtrain/ksampler.h +++ b/dtrain/ksampler.h @@ -11,11 +11,11 @@ namespace dtrain struct KSampler : public HypSampler { - const size_t k_; + const unsigned k_; vector<ScoredHyp> s_; MT19937* prng_; - explicit KSampler(const size_t k, MT19937* prng) : + explicit KSampler(const unsigned k, MT19937* prng) : k_(k), prng_(prng) {} virtual void @@ -30,7 +30,7 @@ struct KSampler : public HypSampler s_.clear(); std::vector<HypergraphSampler::Hypothesis> samples; HypergraphSampler::sample_hypotheses(forest, k_, prng_, &samples); - for (size_t i = 0; i < k_; ++i) { + for (unsigned i = 0; i < k_; ++i) { ScoredHyp h; h.w = samples[i].words; h.f = samples[i].fmap; |