lib/hmmstats.c File Reference

#include "common.h"
#include "hmmstats.h"

Include dependency graph for hmmstats.c:

Go to the source code of this file.

Functions

int scaledLog (double val)
double simpleGaussean (double x)
double gaussean (double x, double mean, double sd)

Variables

static char const rcsid [] = "$Id: hmmstats.c,v 1.4 2003/05/06 07:33:42 kate Exp $"
double oneOverSqrtTwoPi = 0.39894228


Function Documentation

double gaussean ( double  x,
double  mean,
double  sd 
)

Definition at line 26 of file hmmstats.c.

References oneOverSqrtTwoPi.

00028 {
00029 x -= mean;
00030 x /= sd;
00031 return oneOverSqrtTwoPi * exp(-0.5*x*x) / sd;
00032 }

int scaledLog ( double  val  ) 

Definition at line 12 of file hmmstats.c.

References logScaleFactor, and round.

Referenced by codonLoadBias().

00014 {
00015 return round(logScaleFactor * log(val));
00016 }

Here is the caller graph for this function:

double simpleGaussean ( double  x  ) 

Definition at line 20 of file hmmstats.c.

References oneOverSqrtTwoPi.

00022 {
00023 return oneOverSqrtTwoPi * exp(-0.5*x*x );
00024 }


Variable Documentation

double oneOverSqrtTwoPi = 0.39894228

Definition at line 18 of file hmmstats.c.

Referenced by gaussean(), and simpleGaussean().

char const rcsid[] = "$Id: hmmstats.c,v 1.4 2003/05/06 07:33:42 kate Exp $" [static]

Definition at line 10 of file hmmstats.c.


Generated on Tue Dec 25 19:53:45 2007 for blat by  doxygen 1.5.2