summaryrefslogtreecommitdiff
path: root/algo/blast/composition_adjustment/optimize_target_freq.h
diff options
context:
space:
mode:
Diffstat (limited to 'algo/blast/composition_adjustment/optimize_target_freq.h')
-rw-r--r--algo/blast/composition_adjustment/optimize_target_freq.h101
1 files changed, 51 insertions, 50 deletions
diff --git a/algo/blast/composition_adjustment/optimize_target_freq.h b/algo/blast/composition_adjustment/optimize_target_freq.h
index f9684418..5b56b000 100644
--- a/algo/blast/composition_adjustment/optimize_target_freq.h
+++ b/algo/blast/composition_adjustment/optimize_target_freq.h
@@ -1,58 +1,59 @@
-/* ===========================================================================
-*
-* PUBLIC DOMAIN NOTICE
-* National Center for Biotechnology Information
-*
-* This software/database is a "United States Government Work" under the
-* terms of the United States Copyright Act. It was written as part of
-* the author's official duties as a United States Government employee and
-* thus cannot be copyrighted. This software/database is freely available
-* to the public for use. The National Library of Medicine and the U.S.
-* Government have not placed any restriction on its use or reproduction.
-*
-* Although all reasonable efforts have been taken to ensure the accuracy
-* and reliability of the software and data, the NLM and the U.S.
-* Government do not and cannot warrant the performance or results that
-* may be obtained by using this software or data. The NLM and the U.S.
-* Government disclaim all warranties, express or implied, including
-* warranties of performance, merchantability or fitness for any particular
-* purpose.
-*
-* Please cite the author in any work or product based on this material.
-*
-* ===========================================================================*/
+/* $Id: optimize_target_freq.h,v 1.6 2005/12/01 13:54:04 gertz Exp $
+ * ===========================================================================
+ *
+ * PUBLIC DOMAIN NOTICE
+ * National Center for Biotechnology Information
+ *
+ * This software/database is a "United States Government Work" under the
+ * terms of the United States Copyright Act. It was written as part of
+ * the author's official duties as a United States Government employee and
+ * thus cannot be copyrighted. This software/database is freely available
+ * to the public for use. The National Library of Medicine and the U.S.
+ * Government have not placed any restriction on its use or reproduction.
+ *
+ * Although all reasonable efforts have been taken to ensure the accuracy
+ * and reliability of the software and data, the NLM and the U.S.
+ * Government do not and cannot warrant the performance or results that
+ * may be obtained by using this software or data. The NLM and the U.S.
+ * Government disclaim all warranties, express or implied, including
+ * warranties of performance, merchantability or fitness for any particular
+ * purpose.
+ *
+ * Please cite the author in any work or product based on this material.
+ *
+ * ===========================================================================*/
-/*****************************************************************************
+/**
+ * @file optimize_target_freq.h
+ * @author E. Michael Gertz
+ *
+ * Exports for optimized_target_freq.c
+ */
-File name: re_newton.h
+#ifndef __OPTIMIZE_TARGET_FREQ__
+#define __OPTIMIZE_TARGET_FREQ__
-Author: E. Michael Gertz
+#include <algo/blast/core/blast_export.h>
-Contents: Exports for re_newton.c
- Mid-level functions that directly solve the optimization
- problem for compositional score matrix adjustment.
- Used in conjunction with Newton_procedures.c and nlm_numerics
+#ifdef __cplusplus
+extern "C" {
+#endif
-******************************************************************************/
-/*
- * $Log: re_newton.h,v $
- * Revision 1.1 2005/05/16 16:11:41 papadopo
- * Initial revision
- *
- */
+NCBI_XBLAST_EXPORT
+int
+Blast_OptimizeTargetFrequencies(double x[],
+ int alphsize,
+ int * iterations,
+ const double q[],
+ const double row_sums[],
+ const double col_sums[],
+ int constrain_rel_entropy,
+ double relative_entropy,
+ double tol,
+ int maxits);
-#ifndef RE_NEWTON
-#define RE_NEWTON
+#ifdef __cplusplus
+}
+#endif
-Int4
-OptimizeTargetFrequencies(Nlm_FloatHiPtr x,
- Int4 alphsize,
- const Nlm_FloatHi PNTR q,
- const Nlm_FloatHi PNTR row_sums,
- const Nlm_FloatHi PNTR col_sums,
- Int4 constrain_rel_entropy,
- Nlm_FloatHi relative_entropy,
- Nlm_FloatHi tol,
- Int4 maxits);
-
#endif