@@ -169,7 +169,7 @@ cdef class DiscreteGaussianDistributionIntegerSampler(SageObject):
169169 INPUT:
170170
171171 - ``sigma`` -- samples `x` are accepted with probability proportional to
172- `\e xp( -( x-c) ² /( 2σ² )) `
172+ `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) `
173173
174174 - ``c`` -- the mean of the distribution. The value of ``c`` does not have
175175 to be an integer. However, some algorithms only support integer-valued
@@ -191,25 +191,25 @@ cdef class DiscreteGaussianDistributionIntegerSampler(SageObject):
191191
192192 - ``'uniform+ table'`` -- classical rejection sampling, sampling from the
193193 uniform distribution and accepted with probability proportional to
194- `\e xp( -( x-c) ² /( 2σ² )) ` where `\e xp( -( x-c) ² /( 2σ² )) ` is precomputed and
194+ `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` where `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` is precomputed and
195195 stored in a table. Any real-valued `c` is supported.
196196
197197 - ``'uniform+ logtable'`` -- samples are drawn from a uniform distribution and
198- accepted with probability proportional to `\e xp( -( x-c) ² /( 2σ² )) ` where
199- `\e xp( -( x-c) ² /( 2σ² )) ` is computed using logarithmically many calls to
198+ accepted with probability proportional to `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` where
199+ `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` is computed using logarithmically many calls to
200200 Bernoulli distributions. See [DDLL2013 ]_ for details. Only
201201 integer-valued `c` are supported.
202202
203203 - ``'uniform+ online'`` -- samples are drawn from a uniform distribution and
204- accepted with probability proportional to `\e xp( -( x-c) ² /( 2σ² )) ` where
205- `\e xp( -( x-c) ² /( 2σ² )) ` is computed in each invocation. Typically this
204+ accepted with probability proportional to `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` where
205+ `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` is computed in each invocation. Typically this
206206 is very slow. See [DDLL2013 ]_ for details. Any real-valued `c` is
207207 accepted.
208208
209209 - ``'sigma2+ logtable'`` -- samples are drawn from an easily samplable
210210 distribution with `σ = k·σ_2` with `σ_2 = \s qrt{1/( 2\l og 2) }` and accepted
211- with probability proportional to `\e xp( -( x-c) ² /( 2σ² )) ` where
212- `\e xp( -( x-c) ² /( 2σ² )) ` is computed using logarithmically many calls to Bernoulli
211+ with probability proportional to `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` where
212+ `\e xp( -( x-c) ^ 2 /( 2σ^ 2 )) ` is computed using logarithmically many calls to Bernoulli
213213 distributions ( but no calls to `\e xp`) . See [DDLL2013 ]_ for details. Note that this
214214 sampler adjusts `σ` to match `k·σ_2` for some integer `k`.
215215 Only integer-valued `c` are supported.
0 commit comments