This adjusts the threshold. Larger values of t expand the noise region, making more things be classified as noise (and requiring a stronger signal).
| 724 | //This adjusts the threshold. Larger values of t expand the noise region, |
| 725 | //making more things be classified as noise (and requiring a stronger signal). |
| 726 | void VoiceKey::AdjustThreshold(double t) |
| 727 | { |
| 728 | |
| 729 | mThresholdAdjustment = t; |
| 730 | mThresholdEnergy = mEnergyMean + mEnergySD * t; |
| 731 | mThresholdSignChangesUpper = mSignChangesMean + mSignChangesSD * t; |
| 732 | mThresholdSignChangesLower = mSignChangesMean - mSignChangesSD * t; |
| 733 | mThresholdDirectionChangesUpper = mDirectionChangesMean + mDirectionChangesSD * t; |
| 734 | mThresholdDirectionChangesLower = mDirectionChangesMean - mDirectionChangesSD * t; |
| 735 | }; |
| 736 | |
| 737 | |
| 738 | //This 'calibrates' the voicekey to noise |
no outgoing calls
no test coverage detected