PALISADE Lattice Crypto Library  1.11.9
A lattice crypto library for software engineers by software engineers.
Public Member Functions | List of all members
lbcrypto::SamplerCombiner Class Reference
Inheritance diagram for lbcrypto::SamplerCombiner:
Inheritance graph
[legend]
Collaboration diagram for lbcrypto::SamplerCombiner:
Collaboration graph
[legend]

Public Member Functions

 SamplerCombiner (BaseSampler *s1, BaseSampler *s2, int64_t z1, int64_t z2)
 Constructor. More...
 
int64_t GenerateInteger ()
 Return the combined value for two samplers with given coefficients. More...
 
 ~SamplerCombiner ()
 Destructor.
 
- Public Member Functions inherited from lbcrypto::BaseSampler
 BaseSampler (double mean, double std, BitGenerator *generator, BaseSamplerType bType)
 
short RandomBit ()
 

Constructor & Destructor Documentation

◆ SamplerCombiner()

lbcrypto::SamplerCombiner::SamplerCombiner ( BaseSampler s1,
BaseSampler s2,
int64_t  z1,
int64_t  z2 
)
inline

Constructor.

Parameters
s1Pointer to the first sampler to be combined
s2Pointer to the second sampler to be combined
z1Coefficient for the first sampler
z2Coefficient for the second sampler

Member Function Documentation

◆ GenerateInteger()

int64_t lbcrypto::SamplerCombiner::GenerateInteger ( )
inlinevirtual

Return the combined value for two samplers with given coefficients.

Returns
Combined value of the samplers with given coefficents

Reimplemented from lbcrypto::BaseSampler.


The documentation for this class was generated from the following file: