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:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"1" [label="lbcrypto::SamplerCombiner" tooltip="lbcrypto::SamplerCombiner" fillcolor="#BFBFBF"]
"2" [label="lbcrypto::BaseSampler" tooltip="lbcrypto::BaseSampler"]
"1" -> "2" [dir=forward tooltip="public-inheritance"]
}](../_images/graphviz-57539259c9f6c05c741b078c861b794405874124.png)
Collaboration diagram for lbcrypto::SamplerCombiner:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"1" [label="lbcrypto::SamplerCombiner" tooltip="lbcrypto::SamplerCombiner" fillcolor="#BFBFBF"]
"2" [label="lbcrypto::BaseSampler" tooltip="lbcrypto::BaseSampler"]
"1" -> "2" [dir=forward tooltip="public-inheritance"]
}](../_images/graphviz-57539259c9f6c05c741b078c861b794405874124.png)
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)