Invariants of the Brill–Noether curve