(&self, succ_rate: f32)
| 133 | } |
| 134 | |
| 135 | pub fn should_delete(&self, succ_rate: f32) -> bool { |
| 136 | let threshold = 0.1_f32; |
| 137 | let steepness = 10_f32; |
| 138 | let delete_prob = 1_f32 - sigmoid_function(succ_rate, threshold, steepness); |
| 139 | prob_coin(delete_prob) |
| 140 | } |
| 141 | |
| 142 | pub fn should_shuffle(&self, succ: usize, total: usize) -> bool { |
| 143 | // we expect per 20 programs should have a succ one. |
nothing calls this directly
no test coverage detected