# Flipping Ratios

## Flipping Ratios Calculations

Here is the list of functions used to calculate flipping ratios that are provided by the "Neutron Scattering" XOP:

#### FlippingRatio(Rpp, Rbp, Rpm, Rbm)

The FlippingRatio function returns the flipping ratio from the count rates Rpp, Rbp, Rpm and Rbm. Rpp and Rbp are the peak and background count rates for the [+] polarisation state. Rpm and Rbm are the peak and background count rates for the [-] polarisation state. The flipping ratio is defined by:

#### FlippingRatioSDev(Rpp, Rbp, Rpm, Rbm, RppSDev, RbpSDev, RpmSDev, RbmSDev)

The FlippingRatioSDev function returns the flipping ratio standard deviation from the count rates Rpp, Rbp, Rpm, Rbm and the corresponding standard deviations. Rpp and Rbp are the peak and background count rates for the [+] polarisation state. Rpm and Rbm are the peak and background count rates for the [-] polarisation state. The flipping ratio standard deviation is defined by:

#### FlippingRatioOpt(Npp, Nbp, Npm, Nbm, Tpp, Tbp, Tpm, Tbm, Mp, Mb)

The FlippingRatioOpt function returns the flipping ratio from the counts Npp, Nbp, Npm, Nbm, the counting times Tpp, Tbp, Tpm, Tbm and the monitor values Mp and Mb in the case of cyclic measurements. The first indices [p] or [b] stand for peak or background measurements. The second indices stand for the [+] and [-] polarisation states. The flipping ratio is defined by:

#### FlippingRatioOptSDev(Npp, Nbp, Npm, Nbm, Tpp, Tbp, Tpm, Tbm, Mp, Mb)

The FlippingRatioOptSDev function returns the flipping ratio standard deviation from the counts Npp, Nbp, Npm, Nbm, the counting times Tpp, Tbp, Tpm, Tbm and the monitor values Mp and Mb in the case of cyclic measurements. The first indices [p] or [b] stand for peak or background measurements. The second indices stand for the [+] and [-] polarisation states. The flipping ratio standard deviation is defined by:

#### FlippingRatioOptDDT(Npp, Nbp, Npm, Nbm, Tpp, Tbp, Tpm, Tbm, Mp, Mb, a, b)

The FlippingRatioOptDDT function returns the flipping ratio from the counts Npp, Nbp, Npm, Nbm, the counting times Tpp, Tbp, Tpm, Tbm and the monitor values Mp and Mb in the case of cyclic measurements. This function corrects the counts for detector dead-time using a and b , the first and second order correction coefficients expressed in seconds. The first indices [p] or [b] stand for peak or background measurements. The second indices stand for the [+] and [-] polarisation states. The flipping ratio is defined by:

#### FlippingRatioOptDDTSDev(Npp, Nbp, Npm, Nbm, Tpp, Tbp, Tpm, Tbm, Mp, Mb, a, b , aSDev, bSDev)

The FlippingRatioOptDDTSDev function returns the flipping ratio standard deviation from the counts Npp, Nbp, Npm, Nbm, the counting times Tpp, Tbp, Tpm, Tbm and the monitor values Mp and Mb in the case of cyclic measurements. This function corrects the counts for detector dead-time using a and b , the first and second order correction coefficients expressed in seconds, and aSDev, bSDev the corresponding standard deviations. The first indices [p] or [b] stand for peak or background measurements. The second indices stand for the [+] and [-] polarisation states. The flipping ratio standard deviation is defined by: