Whoops, bugfix -- vector should be nthetabins+1 long.