00001 /***************************************************************************** 00002 * Copyright (C) 2000 Jim Kent. This source code may be freely used * 00003 * for personal, academic, and non-profit purposes. Commercial use * 00004 * permitted only by explicit agreement with Jim Kent (jim_kent@pacbell.net) * 00005 *****************************************************************************/ 00006 /* hmmstats.h - Stuff for doing statistical analysis in general and 00007 * hidden Markov models in particular. */ 00008 #ifndef HMMSTATS_H 00009 #define HMMSTATS_H 00010 00011 int scaledLog(double val); 00012 /* Return scaled log of val. */ 00013 00014 #define logScaleFactor 1000 00015 /* Amount we scale logs by. */ 00016 00017 double simpleGaussean(double x); 00018 /* Gaussean distribution with standard deviation 1 and mean 0. */ 00019 00020 double gaussean(double x, double mean, double sd); 00021 /* Gaussean distribution with mean and standard deviation at point x */ 00022 00023 #endif /* HMMSTATS_H */ 00024
1.5.2