Implement 'weak' method for computing the pvalue.