MCPcopy Create free account
hub / github.com/audacity/audacity / AdjustThreshold

Method AdjustThreshold

src/VoiceKey.cpp:726–735  ·  view source on GitHub ↗

This adjusts the threshold. Larger values of t expand the noise region, making more things be classified as noise (and requiring a stronger signal).

Source from the content-addressed store, hash-verified

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).
726void 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

Callers 8

OnStartOnMethod · 0.80
OnStartOffMethod · 0.80
OnEndOnMethod · 0.80
OnEndOffMethod · 0.80
OnSelectSoundMethod · 0.80
OnSelectSilenceMethod · 0.80
OnCalibrateMethod · 0.80
OnAutomateSelectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected