function tval = tvalue(x, y)

    signal = abs(mean(x) - mean(y));

    noise = sqrt(((std(x)^2)/length(x)) + ((std(y)^2)/length(y)));

    if noise > 0
        tval = signal/noise;
    else
        tval = 0;
    end

end