File: fromCountTableComponentToDistance2USSRV.h

package info (click to toggle)
fastml 3.11-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,772 kB
  • sloc: cpp: 48,522; perl: 3,588; ansic: 819; makefile: 386; python: 83; sh: 55
file content (39 lines) | stat: -rwxr-xr-x 1,186 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// 	$Id: fromCountTableComponentToDistance2USSRV.h 962 2006-11-07 15:13:34Z privmane $	

#ifndef ___FROM_COUNT_TABLE_COMPONENT_TO_DISTANCE_2_USSRV
#define ___FROM_COUNT_TABLE_COMPONENT_TO_DISTANCE_2_USSRV

#include "definitions.h"
#include "countTableComponent.h"
#include "stochasticProcess.h"
#include "ussrvModel.h"
#include "likeDist2USSRV.h"

static const MDOUBLE startingGuessForTreeBrLen = 0.029;

class fromCountTableComponentToDistance2USSRV {

public:
	explicit fromCountTableComponentToDistance2USSRV(
		const countTableComponentGam& ctcBase,
		const countTableComponentHom& ctcSSRV,
		const ussrvModel& model,
		MDOUBLE toll,
		MDOUBLE brLenIntialGuess);// =startingGuessForTreeBrLen

	void computeDistance();// return the likelihood
	MDOUBLE getDistance() { return _distance;} // return the distance.
	MDOUBLE getLikeDistance() { return _likeDistance;} // return the distance.

private:
	const ussrvModel & _model;
	const countTableComponentGam& _ctcBase;
	const countTableComponentHom& _ctcSSRV;
	MDOUBLE _toll;
	MDOUBLE _distance;
	MDOUBLE _likeDistance;
//	int alphabetSize() {return _ctc.alphabetSize();}
};

#endif //___FROM_COUNT_TABLE_COMPONENT_TO_DISTANCE_2_USSRV