openModeller  Version 1.5.0
AlgoAdapterModel.cpp
Go to the documentation of this file.
1 
3 
5 
6 /*********************************************************************************
7  *
8  * AlgoAdapterModelImpl - Adapt and Algorithm into a Model Impl.
9  *
10  *********************************************************************************/
11 
13  ModelImpl(),
14  _algo( algo )
15 { }
16 
18 {
19 }
20 
21 void
23 {
24  _algo->setNormalization( sampl );
25 }
26 
27 void
29 {
30  _algo->setNormalization( env );
31 }
32 
33 Scalar
35 {
36  return _algo->getValue( x );
37 }
double Scalar
Type of map values.
Definition: om_defs.hh:39
ConstAlgorithmPtr _algo
virtual Scalar getValue(const Sample &x) const
AlgoAdapterModelImpl(const ConstAlgorithmPtr &)
Definition: Sample.hh:25
virtual void setNormalization(const SamplerPtr &samp) const