Yes you are right it should be (1 + tanh(p)) / 2. I haven't done any tests/benchmarks on that too.