| eval_logistic | R Documentation |
Evaluate logistic function on a ciphertext
eval_logistic(ct, a, b, degree)
ct |
A Ciphertext |
a |
Lower bound of the approximation interval |
b |
Upper bound of the approximation interval |
degree |
Chebyshev polynomial degree |
A Ciphertext holding the encrypted, slot-wise logistic function 1 / (1 + exp(-x)) of ct, approximated by a Chebyshev polynomial of
the given degree on the interval [a, b]. Accuracy degrades
outside that interval, and the result sits ceiling(log2(degree)) + 1 levels below ct.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.