185 | | |
186 | | if((observables[COMMUNICATION_TIME].value != 0) || (observables[ENERGY].value > 1000)) { |
187 | | printf("Cognitive Engine:: Primary User caused channel change - Decrementing Utility. %f %f",observables[COMMUNICATION_TIME].value,observables[ENERGY].value); |
| 185 | int Detection_Threshold = 10000000; |
| 186 | |
| 187 | if((observables[COMMUNICATION_TIME].value != 0) || (observables[ENERGY].value > Detection_Threshold)) { |
| 188 | printf("Cognitive Engine:: Possible PU Detection - Decrementing Utility. %f %f",observables[COMMUNICATION_TIME].value,observables[ENERGY].value); |