bpp-phyl3 3.0.0
AnonymousSubstitutionModel.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: The Bio++ Development Group
2//
3// SPDX-License-Identifier: CECILL-2.1
4
5#ifndef BPP_PHYL_MODEL_ANONYMOUSSUBSTITUTIONMODEL_H
6#define BPP_PHYL_MODEL_ANONYMOUSSUBSTITUTIONMODEL_H
7
8
10
11namespace bpp
12{
13/*
14 * @brief Substitution Model with no name nor predefined generator
15 * sets, and provides a non-const setGenerator() function to fill
16 * the generator directly.
17 *
18 * Directly inherits from AbstractSubstitutionModel, hence uses the
19 * computation methods developed in it.
20 */
23{
24public:
26 std::shared_ptr<const Alphabet> alpha,
27 std::shared_ptr<const StateMapInterface> stateMap) :
28 AbstractParameterAliasable("Anonymous"),
29 AbstractSubstitutionModel(alpha, stateMap, "Anonymous")
30 {}
31
33
35 {
36 return new AnonymousSubstitutionModel(*this);
37 }
38
39public:
40 std::string getName() const override { return "Anonymous"; }
41
43};
44} // end of namespace bpp.
45#endif // BPP_PHYL_MODEL_ANONYMOUSSUBSTITUTIONMODEL_H
RowMatrix< double > generator_
The generator matrix of the model.
const StateMapInterface & stateMap() const override
AnonymousSubstitutionModel(std::shared_ptr< const Alphabet > alpha, std::shared_ptr< const StateMapInterface > stateMap)
std::string getName() const override
Get the name of the model.
AnonymousSubstitutionModel * clone() const override
Defines the basic types of data flow nodes.