P(x1,,xn)=Cexp(-W/(kT)),