lib/slog.c File Reference

#include "common.h"
#include "slog.h"

Include dependency graph for slog.c:

Go to the source code of this file.

Functions

int slog (double val)
int carefulSlog (double val)
double invSlog (int scaledLog)

Variables

static char const rcsid [] = "$Id: slog.c,v 1.4 2003/05/06 07:33:44 kate Exp $"
double fSlogScale = 8192.0
double invSlogScale = 0.0001220703125


Function Documentation

int carefulSlog ( double  val  ) 

Definition at line 20 of file slog.c.

References slog().

00022 {
00023 if (val < 0.0000001)
00024     val = 0.0000001;
00025 return slog(val);
00026 }

Here is the call graph for this function:

double invSlog ( int  scaledLog  ) 

Definition at line 28 of file slog.c.

References invSlogScale.

00030 {
00031 return exp(scaledLog*invSlogScale);
00032 }

int slog ( double  val  ) 

Definition at line 14 of file slog.c.

References fSlogScale, and round.

Referenced by carefulSlog(), dnaMark0(), dnaMark1(), and dnaMarkTriple().

00016 {
00017 return (round(fSlogScale*log(val)));
00018 }

Here is the caller graph for this function:


Variable Documentation

double fSlogScale = 8192.0

Definition at line 11 of file slog.c.

Referenced by slog().

double invSlogScale = 0.0001220703125

Definition at line 12 of file slog.c.

Referenced by invSlog().

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

Definition at line 9 of file slog.c.


Generated on Tue Dec 25 20:16:25 2007 for blat by  doxygen 1.5.2