@@ -22,6 +22,9 @@ class MvaFrequencySet :
2222 public virtual ProteinFrequencySetInterface,
2323 public AbstractFrequencySet
2424{
25+ private:
26+ std::shared_ptr<const Coala> model_;
27+
2528public:
2629 /* *
2730 * @brief Constructor
@@ -48,7 +51,6 @@ class MvaFrequencySet :
4851 RowMatrix<double > tPpalAxes_;
4952 RowMatrix<double > rowCoords_;
5053 size_t nbrOfAxes_;
51- std::string model_;
5254 std::vector<double > columnWeights_;
5355 std::map<std::string, std::string> paramValues_;
5456
@@ -58,10 +60,20 @@ class MvaFrequencySet :
5860 return std::dynamic_pointer_cast<const ProteicAlphabet>(getAlphabet ());
5961 }
6062
63+ const Coala& model () const
64+ {
65+ return *model_;
66+ }
67+
68+ std::shared_ptr<const Coala> getModel () const
69+ {
70+ return model_;
71+ }
72+
6173 void setTransposeMatrixOfPpalAxes (const RowMatrix<double >& matrix) { tPpalAxes_ = matrix; }
6274 void setMatrixOfRowCoords (const RowMatrix<double >& matrix) { rowCoords_ = matrix; }
6375 void setNbrOfAxes (const size_t & nAxes) { nbrOfAxes_ = nAxes; }
64- void setModelName (const std::string& modelName) { model_ = modelName; }
76+ // void setModelName(const std::string& modelName) { model_ = modelName; }
6577 void setVectorOfColumnWeights (const std::vector<double >& cw) { columnWeights_ = cw; }
6678 void setParamValues (std::map<std::string, std::string>& valuesSettings) {paramValues_ = valuesSettings;}
6779
@@ -71,7 +83,7 @@ class MvaFrequencySet :
7183 void fireParameterChanged (const ParameterList& parameters) override ;
7284 void updateFrequencies ();
7385
74- void initSet (const CoalaCore& coala);
86+ void initSet (std::shared_ptr< const Coala> coala);
7587
7688 void computeReversePCA (const std::vector<double >& positions, std::vector<double >& tmpFreqs);
7789 void computeCoordsFirstSpacePCA (std::vector<double >& tmpFreqs, std::vector<double >& freqs);
0 commit comments