~ubuntu-branches/ubuntu/saucy/libbpp-phyl/saucy

« back to all changes in this revision

Viewing changes to src/Bpp/Phyl/Model/JCprot.cpp

  • Committer: Package Import Robot
  • Author(s): Julien Dutheil
  • Date: 2013-02-09 16:00:00 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130209160000-5v65ba68z8032nzj
Tags: 2.0.3-1
* Reorganized model hierarchy
* New pairwise models
* Several bugs fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
//
6
6
 
7
7
/*
8
 
Copyright or © or Copr. CNRS, (November 16, 2004)
 
8
Copyright or © or Copr. Bio++ Development Team, (November 16, 2004)
9
9
 
10
10
This software is a computer program whose purpose is to provide classes
11
11
for phylogenetic data analysis.
51
51
/******************************************************************************/
52
52
 
53
53
JCprot::JCprot(const ProteicAlphabet* alpha) :
54
 
  AbstractReversibleSubstitutionModel(alpha, "JC69."), exp_(), p_(size_, size_),
55
 
  freqSet_(0)
 
54
  AbstractParameterAliasable("JC69."),
 
55
  AbstractSubstitutionModel(alpha, "JC69."),
 
56
  AbstractReversibleSubstitutionModel(alpha, "JC69."),
 
57
  exp_(), p_(size_, size_), freqSet_(0)
56
58
{
57
59
  freqSet_ = new FixedProteinFrequenciesSet(alpha, freq_);
58
60
  updateMatrices();
59
61
}
60
62
 
61
63
JCprot::JCprot(const ProteicAlphabet* alpha, ProteinFrequenciesSet* freqSet, bool initFreqs) :
62
 
  AbstractReversibleSubstitutionModel(alpha, "JC69+F."), exp_(), p_(size_, size_),
63
 
  freqSet_(freqSet)
 
64
  AbstractParameterAliasable("JC69+F."),
 
65
  AbstractSubstitutionModel(alpha, "JC69+F."),
 
66
  AbstractReversibleSubstitutionModel(alpha, "JC69+F."),
 
67
  exp_(), p_(size_, size_), freqSet_(freqSet)
64
68
{
65
69
  if (initFreqs) freqSet_->setFrequencies(freq_);
66
70
  else freq_ = freqSet_->getFrequencies();