Beispiel #1
0
        public LfmCovarianceProxy(LmVolatilityModel volaModel,
                                  LmCorrelationModel corrModel)
            : base(corrModel.size(), corrModel.factors())
        {
            volaModel_ = volaModel;
            corrModel_ = corrModel;

            Utils.QL_REQUIRE(volaModel_.size() == corrModel_.size(), () =>
                             "different size for the volatility (" + volaModel_.size() + ") and correlation (" + corrModel_.size() + ") models");
        }
        public LfmCovarianceProxy(LmVolatilityModel volaModel,
                           LmCorrelationModel corrModel)
            : base(corrModel.size(), corrModel.factors()){
            volaModel_=volaModel;
            corrModel_=corrModel ;

            if(!(volaModel_.size() == corrModel_.size()))
                throw new ArgumentException("different size for the volatility (" + volaModel_.size() +
                                            ") and correlation (" + corrModel_.size() +
                                            ") models");
        }
Beispiel #3
0
        public LfmCovarianceProxy(LmVolatilityModel volaModel,
                                  LmCorrelationModel corrModel)
            : base(corrModel.size(), corrModel.factors())
        {
            volaModel_ = volaModel;
            corrModel_ = corrModel;

            if (!(volaModel_.size() == corrModel_.size()))
            {
                throw new ArgumentException("different size for the volatility (" + volaModel_.size() +
                                            ") and correlation (" + corrModel_.size() +
                                            ") models");
            }
        }
Beispiel #4
0
 public LmConstWrapperVolatilityModel(LmVolatilityModel volaModel)
     : base(volaModel.size(), 0)
 {
     volaModel_=volaModel ;
 }
Beispiel #5
0
 public LmConstWrapperVolatilityModel(LmVolatilityModel volaModel)
     : base(volaModel.size(), 0)
 {
     volaModel_ = volaModel;
 }