# Compute the acceptance probability for each updated design

### Description

Compute the acceptance probability for each updated design. It depends on the
current temperature value of simulated annealing process.
This is a subfunction needed for `designGG`

, but is not directly used.

### Usage

1 2 | ```
acceptanceProbability( designScore, newDesignScore, method,
temperature )
``` |

### Arguments

`designScore` |
score of current design. |

`newDesignScore` |
score of updated design. |

`method` |
either "SA" (simulated annealing) or "MH". (Metropolis Hastings) |

`temperature` |
current temperature in simulated annealing process. |

### Author(s)

Yang Li <yang.li@rug.nl>, Gonzalo Vera <gonzalo.vera.rodriguez@gmail.com>

Rainer Breitling <r.breitling@rug.nl>, Ritsert Jansen <r.c.jansen@rug.nl>

### References

E. Wit and J. McClure. Statistics for Microarrays: Design, Analysis
and Inference. (2004) Chichester: Wiley.

Y. Li, R. Breitling and R.C. Jansen. Generalizing genetical
genomics: the added value from environmental perturbation, Trends Genet
(2008) 24:518-524.

Y. Li, M. Swertz, G. Vera, J. Fu, R. Breitling, and R.C. Jansen. designGG:
An R-package and Web tool for the optimal design of genetical genomics
experiments. BMC Bioinformatics 10:188(2009)

http://gbic.biol.rug.nl/designGG

### See Also

`designGG`