function findBlink(currentMedian, baselineMedian, standardDeviation) {

    // if currentMedian is smaller then  median - standardDeviation * threshold  it will be classified as a blink
    if (Number(baselineMedian - standardDeviation * settings.threshold) > currentMedian && skip === 0) {
        if (settings.debug) {
            console.log("BLINK: \t value: " + currentMedian.toFixed(2) + "\t at " + new Date());
        }

        // increase blinkcount for mocha tests
        blink.setBlinkcount();

        // send current command to musicplayer to execute
        server.doBlinkCmd(currentCommand);

        // to prevent multiple classification for same blink skip next slots
        skip = settings.slots * settings.skipAfterBlink;
    }

    if (skip > 0) {
        skip -= 1;
    }
}
/**
 * check if current median is a blink
 * @params: currentMedian: current median to compare with baseline, baselineMedian: median baseline samples, standardDeviation: standard deviation baseline samples,
 *
 */
check if current median is a blink
@params: currentMedian: current median to compare with baseline, baselineMedian: median baseline samples, standardDeviation: standard deviation baseline samples.
check if current median is a blink @params : currentMedian : current median to compare with baseline baselineMedian : median baseline samples standardDeviation : standard deviation baseline samples .
function findBlink(currentMedian, baselineMedian, standardDeviation) {
    if (Number(baselineMedian - standardDeviation * settings.threshold) > currentMedian && skip === 0) {
        if (settings.debug) {
            console.log("BLINK: \t value: " + currentMedian.toFixed(2) + "\t at " + new Date());
        }
        blink.setBlinkcount();
        server.doBlinkCmd(currentCommand);
        skip = settings.slots * settings.skipAfterBlink;
    }
    if (skip > 0) {
        skip -= 1;
    }
}
function findBlink ( currentMedian , baselineMedian , standardDeviation ) { if ( Number ( baselineMedian - standardDeviation * settings . threshold ) > currentMedian && skip === 0 ) { if ( settings . debug ) { console . log ( "BLINK: \t value: " + currentMedian . toFixed ( 2 ) + "\t at " + new Date ( ) ) ; } blink . setBlinkcount ( ) ; server . doBlinkCmd ( currentCommand ) ; skip = settings . slots * settings . skipAfterBlink ; } if ( skip > 0 ) { skip -= 1 ; } }
check if current median is a blink
 @params: currentMedian: current median to compare with baseline, baselineMedian: median baseline samples, standardDeviation: standard deviation baseline samples,
check if current median is a blink @params : currentMedian : current median to compare with baseline baselineMedian : median baseline samples standardDeviation : standard deviation baseline samples
// if currentMedian is smaller then  median - standardDeviation * threshold  it will be classified as a blink // increase blinkcount for mocha tests // send current command to musicplayer to execute // to prevent multiple classification for same blink skip next slots