REWEIGHT_BIAS
 This is part of the bias module

Calculate weights for ensemble averages that negate the effect the bias has on the region of phase space explored

If a static or pseudo-static bias $$V(x,t')$$ is acting on the system we can remove the bias and get the unbiased probability distribution using:

$\langle P(s',t) \rangle = \frac{ \sum_{t'}^t \delta( s(x) - s' ) \exp\left( +\frac{V(x,t')}{k_B T} \right) }{ \sum_t'^t \exp\left( +\frac{V(x,t')}{k_B T} \right) }$

The weights calculated by this action are equal to $$\exp\left( +\frac{V(x,t')}{k_B T} \right)$$ these weights can then be used in any action that computes ensemble averages. For example this action can be used in tandem with HISTOGRAM or AVERAGE.

Compulsory keywords
 ARG ( default=*.bias ) the biases that must be taken into account when reweighting
Options
 TEMP the system temperature. This is not required if your MD code passes this quantity to PLUMED
Examples

In the following example there is a fixed restraint on the distance between atoms 1 and 2. Clearly, this restraint will have an effect on the region of phase space that will be sampled when an MD simulation is run using this variable. Consequently, when the histogram as a function of the distance, $$x$$, is accumulated, we use reweighting into order to discount the effect of the bias from our final histogram.

x: DISTANCE ATOMS=1,2
RESTRAINT ARG=x SLOPE=1.0 AT=0.0
bias: REWEIGHT_BIAS TEMP=300

HISTOGRAM ...
ARG=x
GRID_MIN=0.0
GRID_MAX=3.0
GRID_BIN=100
BANDWIDTH=0.1
LOGWEIGHTS=bias
LABEL=hB
... HISTOGRAM

DUMPGRID GRID=hB FILE=histoB STRIDE=1 FMT=%8.4f
{"ft_lang_label":"__label__en","ft_lang_prob":0.80455273,"math_prob":0.99791753,"size":1551,"snap":"2022-40-2023-06","text_gpt3_token_len":442,"char_repetition_ratio":0.10148675,"word_repetition_ratio":0.016806724,"special_character_ratio":0.27079305,"punctuation_ratio":0.10576923,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9997471,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-02-07T04:07:35Z\",\"WARC-Record-ID\":\"<urn:uuid:fdb85bdc-a306-49f6-9280-4ff92818fccb>\",\"Content-Length\":\"8222\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1c907043-dffe-4680-954c-e349eb17d2db>\",\"WARC-Concurrent-To\":\"<urn:uuid:47884aec-a56a-484d-8c0c-16ac85c12169>\",\"WARC-IP-Address\":\"185.199.111.153\",\"WARC-Target-URI\":\"https://www.plumed.org/doc-v2.6/user-doc/html/_r_e_w_e_i_g_h_t__b_i_a_s.html\",\"WARC-Payload-Digest\":\"sha1:LHJ74E2HIYUKB53TIDYPHLKKTZC3NJ2U\",\"WARC-Block-Digest\":\"sha1:BWPXHMYL7253664QKVCGU5LIH5HTHLRR\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764500384.17_warc_CC-MAIN-20230207035749-20230207065749-00832.warc.gz\"}"}