PageRenderTime 825ms CodeModel.GetById 40ms RepoModel.GetById 5ms app.codeStats 0ms

/ghmm-0.7.0/ghmm/root_finder.h

http://github.com/jcnossen/hmmgenefinder
C Header | 68 lines | 12 code | 4 blank | 52 comment | 0 complexity | 9a45840f187b90a83e826898ec3ad51e MD5 | raw file
Possible License(s): GPL-2.0
  1. /*******************************************************************************
  2. *
  3. * This file is part of the General Hidden Markov Model Library,
  4. * GHMM version __VERSION__, see http://ghmm.org
  5. *
  6. * Filename: ghmm/ghmm/root_finder.h
  7. * Authors: Achim Gaedke
  8. *
  9. * Copyright (C) 1998-2004 Alexander Schliep
  10. * Copyright (C) 1998-2001 ZAIK/ZPR, Universitaet zu Koeln
  11. * Copyright (C) 2002-2004 Max-Planck-Institut fuer Molekulare Genetik,
  12. * Berlin
  13. *
  14. * Contact: schliep@ghmm.org
  15. *
  16. * This library is free software; you can redistribute it and/or
  17. * modify it under the terms of the GNU Library General Public
  18. * License as published by the Free Software Foundation; either
  19. * version 2 of the License, or (at your option) any later version.
  20. *
  21. * This library is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24. * Library General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Library General Public
  27. * License along with this library; if not, write to the Free
  28. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  29. *
  30. *
  31. * This file is version $Revision: 1191 $
  32. * from $Date: 2005-06-21 11:56:12 +0200 (Tue, 21 Jun 2005) $
  33. * last change by $Author: cic99 $.
  34. *
  35. *******************************************************************************/
  36. #ifndef ROOT_FINDER_H
  37. #define ROOT_FINDER_H
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41. /**
  42. @name root finder
  43. */
  44. /*@{ */
  45. /**
  46. brent root finding algorithm.
  47. wrapps this functioncall to the gsl 1D-root finding interface
  48. @author Achim G\"adke
  49. @param x1 lower bracket value
  50. @param x2 upper bracket value
  51. @param tol tolerance for iteration
  52. @param A 1st extra parameter
  53. @param B 2nd extra parameter
  54. @param eps 3rd extra parameter
  55. @return root
  56. */
  57. double zbrent_AB (double (*func) (double, double, double, double),
  58. double x1, double x2, double tol, double A, double B,
  59. double eps);
  60. /*@} */
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif