Package org.jquantlib.cashflow

Examples of org.jquantlib.cashflow.Dividend


        }
        super.setupArguments(args, events);
    }

    protected double getDividendAmount(final int i) /* @ReadOnly */ {
        final Dividend dividend = (Dividend)(events.get(i));
        if (dividend!=null) {
            return dividend.amount();
        } else {
            return 0.0;
        }
    }
View Full Code Here


        final Array grid = method().grid(t);
        // add back all dividend amounts in the future
        for (int i=0; i<this.arguments.dividends.size(); i++) {
            final double dividendTime = dividendTimes.get(i);
            if (dividendTime >= t || Closeness.isCloseEnough(dividendTime,t)) {
               final Dividend d = this.arguments.dividends.get(i);
                for (int j=0; j<grid.size(); j++) {
                    double v = grid.get(j);
                    v += d.amount(v);
                    grid.set(j,v);// += d->amount(grid[j]);
                }
            }
        }
        return grid;
View Full Code Here

        }
        super.setupArguments(args, events);
    }

    protected double getDividendAmount(final int i) /* @ReadOnly */ {
        final Dividend dividend = (Dividend)(events.get(i));
        if (dividend!=null) {
            return dividend.amount();
        } else {
            return 0.0;
        }
    }
View Full Code Here

TOP

Related Classes of org.jquantlib.cashflow.Dividend

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.