fhe.rs icon indicating copy to clipboard operation
fhe.rs copied to clipboard

Enable error variances of more than 16

Open tlepoint opened this issue 3 years ago • 1 comments

The variance for sampling according to the centered binomial distribution is currently capped at 16:

pub fn sample_vec_cbd(vector_size: usize, variance: usize) -> Result<Vec<i64>, &'static str> {
	if !(1..=16).contains(&variance) {
		return Err("The variance should be between 1 and 16");
	}

It would be good to enable larger values.

tlepoint avatar Sep 06 '22 18:09 tlepoint

I'll try to do it. Or it's ancient?

oiwn avatar Nov 08 '25 06:11 oiwn