20 #ifndef THETA_UNION_IMPL_HPP_
21 #define THETA_UNION_IMPL_HPP_
26 theta_union_alloc<A>::theta_union_alloc(uint8_t lg_cur_size, uint8_t lg_nom_size, resize_factor rf,
float p, uint64_t theta, uint64_t seed,
const A& allocator):
27 state_(lg_cur_size, lg_nom_size, rf, p, theta, seed, nop_policy(), allocator)
31 template<
typename FwdSketch>
33 state_.
update(std::forward<FwdSketch>(sketch));
38 return state_.get_result(ordered);
51 return theta_union_alloc(this->starting_lg_size(), this->lg_k_, this->rf_, this->p_, this->starting_theta(), this->seed_, this->allocator_);
Compact Theta sketch.
Definition: theta_sketch.hpp:359
Theta base builder.
Definition: theta_update_sketch_base.hpp:97
theta_union_alloc< A > build() const
Create an instance of the union with predefined parameters.
Definition: theta_union_impl.hpp:50
Theta Union.
Definition: theta_union.hpp:40
void update(FwdSketch &&sketch)
Update the union with a given sketch.
Definition: theta_union_impl.hpp:32
void reset()
Reset the union to the initial empty state.
Definition: theta_union_impl.hpp:42
DataSketches namespace.
Definition: binomial_bounds.hpp:38