libpappsomspp
Library for mass spectrometry
xtandemhyperscorebis.cpp File Reference

computation of the X!Tandem hyperscore More...

Go to the source code of this file.

Functions

unsigned int factorial (unsigned int n)
 

Detailed Description

computation of the X!Tandem hyperscore

Date
8/9/2016
Author
Olivier Langella

Definition in file xtandemhyperscorebis.cpp.

Function Documentation

◆ factorial()

unsigned int factorial ( unsigned int  n)

Definition at line 41 of file xtandemhyperscorebis.cpp.

42 {
43  unsigned int retval = 1;
44  for(int i = n; i > 1; --i)
45  retval *= i;
46  return retval;
47 }