17 #ifndef CARTOGRAPHER_IO_FIXED_RATIO_SAMPLING_POINTS_PROCESSOR_H_ 18 #define CARTOGRAPHER_IO_FIXED_RATIO_SAMPLING_POINTS_PROCESSOR_H_ 34 "fixed_ratio_sampler";
39 static std::unique_ptr<FixedRatioSamplingPointsProcessor>
FromDictionary(
49 void Process(std::unique_ptr<PointsBatch> batch)
override;
55 std::unique_ptr<common::FixedRatioSampler>
sampler_;
61 #endif // CARTOGRAPHER_IO_FIXED_RATIO_SAMPLING_POINTS_PROCESSOR_H_ ~FixedRatioSamplingPointsProcessor() override
const double sampling_ratio_
PointsProcessor *const next_
FlushResult Flush() override
void Process(std::unique_ptr< PointsBatch > batch) override
FixedRatioSamplingPointsProcessor & operator=(const FixedRatioSamplingPointsProcessor &)=delete
static std::unique_ptr< FixedRatioSamplingPointsProcessor > FromDictionary(common::LuaParameterDictionary *dictionary, PointsProcessor *next)
static constexpr const char * kConfigurationFileActionName
std::unique_ptr< common::FixedRatioSampler > sampler_
FixedRatioSamplingPointsProcessor(double sampling_ratio, PointsProcessor *next)