public static boolean[] zeroCrossingBoolean(short sample[]){
        boolean crossingBoolean[] = new boolean[sample.length];
        for (int c = 0; c < sample.length - 1; c++){
            if (((sample[c] > 0) && (sample[c + 1] < 0)) || ((sample[c] < 0) && (sample[c + 1] > 0))){
                crossingBoolean[c] = true;
            }
        }
        return crossingBoolean;
    }