Пример #1
0
 public BSMOperator(Vector grid, GeneralizedBlackScholesProcess process, double residualTime)
     : base(grid.size())
 {
     //PdeBSM::grid_type  logGrid(grid);
     LogGrid logGrid = new LogGrid(grid);
     var cc = new PdeConstantCoeff<PdeBSM>(process, residualTime, process.stateVariable().link.value());
     cc.generateOperator(residualTime, logGrid, this);
 }
Пример #2
0
        public BSMOperator(Vector grid, GeneralizedBlackScholesProcess process, double residualTime) : base(grid.size())
        {
            //PdeBSM::grid_type  logGrid(grid);
            LogGrid logGrid = new LogGrid(grid);
            var     cc      = new PdeConstantCoeff <PdeBSM>(process, residualTime, process.stateVariable().link.value());

            cc.generateOperator(residualTime, logGrid, this);
        }
Пример #3
0
 public GenericTimeSetter(Vector grid, GeneralizedBlackScholesProcess process)
 {
     grid_ = new LogGrid(grid);
     pde_  = (PdeClass) new PdeClass().factory(process);
 }
Пример #4
0
 public GenericTimeSetter(Vector grid, GeneralizedBlackScholesProcess process)
 {
     grid_ = new LogGrid(grid);
     pde_  = (PdeClass)FastActivator <PdeClass> .Create().factory(process);
 }