1 #ifndef __SPLINEH__ 2 #define __SPLINEH__ 3 /*------------------------------------------------------ 4 Maximum likelihood estimation 5 of migration rate and effectice population size 6 using a Metropolis-Hastings Monte Carlo algorithm 7 ------------------------------------------------------- 8 S P L I N E R O U T I N E S 9 10 interface part to adaptive spline routines 11 from the AMS library 12 13 Peter Beerli 1999, Seattle 14 beerli@fsu.edu 15 16 Copyright 1996-2002 Peter Beerli and Joseph Felsenstein, Seattle WA 17 Copyright 2003-2004 Peter Beerli, Tallahassee FL 18 19 Permission is hereby granted, free of charge, to any person obtaining 20 a copy of this software and associated documentation files (the 21 "Software"), to deal in the Software without restriction, including 22 without limitation the rights to use, copy, modify, merge, publish, 23 distribute, sublicense, and/or sell copies of the Software, and to 24 permit persons to whom the Software is furnished to do so, subject 25 to the following conditions: 26 27 The above copyright notice and this permission notice shall be 28 included in all copies or substantial portions of the Software. 29 30 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 31 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 32 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 33 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 34 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 35 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 36 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 37 38 39 $Id: spline.h 2157 2013-04-16 22:27:40Z beerli $ 40 -------------------------------------------------------*/ 41 42 extern int dbvssc_ (MYREAL *x, MYREAL *y, long *np, long *n, long *k, 43 long *opt, MYREAL *d0, MYREAL *dnp, MYREAL *d20, 44 MYREAL *d2np, long *constr, MYREAL *eps, 45 MYREAL (*beta) (MYREAL *), MYREAL (*betai) (MYREAL *), MYREAL (*rho) (MYREAL *), 46 MYREAL (*rhoi) (MYREAL *), long *kmax, long *maxstp, long *errc, 47 MYREAL *d, MYREAL *d2, long *diagn, MYREAL *work, 48 long *nwork); 49 50 extern int dbvsse_ (MYREAL *x, MYREAL *y, long *np, long *n, long *k, 51 MYREAL *xtab, long *ntab, long *sbopt, long *y0opt, 52 long *y1opt, long *y2opt, long *errc, MYREAL *d, 53 MYREAL *d2, MYREAL *y0tab, MYREAL *y1tab, MYREAL *y2tab, 54 long *erre, MYREAL *work, long *nwork); 55 56 57 58 #endif 59