Class SamplerCombiner

Inheritance Relationships

Base Type

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"] }

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"] }

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.