Class SamplerCombiner
Defined in File discretegaussiangeneratorgeneric.h
Page Contents
Inheritance Relationships
Base Type
public lbcrypto::BaseSampler
(Class BaseSampler)
Class Documentation
-
class lbcrypto::SamplerCombiner : public lbcrypto::BaseSampler
Inheritence diagram for lbcrypto::SamplerCombiner:
Collaboration diagram for lbcrypto::SamplerCombiner:
Public Functions
-
inline SamplerCombiner(BaseSampler *s1, BaseSampler *s2, int64_t z1, int64_t z2)
Constructor.
- Parameters
s1 – Pointer to the first sampler to be combined
s2 – Pointer to the second sampler to be combined
z1 – Coefficient for the first sampler
z2 – Coefficient for the second sampler
-
inline virtual int64_t GenerateInteger() override
Return the combined value for two samplers with given coefficients.
- Returns
Combined value of the samplers with given coefficents
-
~SamplerCombiner() = default
Destructor.
-
inline SamplerCombiner(BaseSampler *s1, BaseSampler *s2, int64_t z1, int64_t z2)