-
Notifications
You must be signed in to change notification settings - Fork 45
Enable error variances of more than 16 #119
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersrustPull requests that update Rust codePull requests that update Rust code
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersrustPull requests that update Rust codePull requests that update Rust code