mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-27 05:40:25 +08:00
31 lines
667 B
C++
31 lines
667 B
C++
// $Id: GLaguer.h 962 2006-11-07 15:13:34Z privmane $
|
|
#ifndef ___GLAGUER
|
|
#define ___GLAGUER
|
|
|
|
#include "definitions.h"
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
typedef double raterootarray[35][35];
|
|
|
|
class GLaguer
|
|
{
|
|
public:
|
|
explicit GLaguer(const int pointsNum, const MDOUBLE alpha, Vdouble & points, Vdouble & weights);
|
|
|
|
void GetPhylipLaguer(const int pointsNum, MDOUBLE alf, Vdouble & points, Vdouble & weights);
|
|
|
|
private:
|
|
void gaulag(Vdouble &x, Vdouble &w, const MDOUBLE alf, const int pointsNum);
|
|
|
|
void lgr(long m, double alpha, raterootarray lgroot);
|
|
double glaguerre(long m, double b, double x);
|
|
|
|
|
|
private:
|
|
Vdouble _points;
|
|
Vdouble _weights;
|
|
};
|
|
|
|
#endif
|