Examples of amount()


Examples of org.jquantlib.cashflow.CashFlow.amount()

            final Date d = cashflow.date();
            if (d.gt(settlementDate)) {
                delta_theta -= cashflow.amount()
                * process.riskFreeRate().currentLink().zeroRate(d, rfdc, Compounding.Continuous, Frequency.Annual).rate()
                * process.riskFreeRate().currentLink().discount(d);
                delta_rho += cashflow.amount() * process.time(d) * process.riskFreeRate().currentLink().discount(t);
            }
        }
        t = process.time(a.exercise.lastDate());
        try {
            greeks.theta = black.theta(spot, t) + delta_theta * black.delta(spot);
 
View Full Code Here

Examples of org.jquantlib.cashflow.Dividend.amount()

    }

    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

Examples of org.jquantlib.cashflow.Dividend.amount()

            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

Examples of org.jquantlib.cashflow.Dividend.amount()

    }

    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

Examples of org.jquantlib.cashflow.FixedRateCoupon.amount()

            for (int i=0; i<fixedCoupons.size(); i++) {
                final FixedRateCoupon coupon = (FixedRateCoupon) fixedCoupons.get(i);
                a.fixedPayDates.set(i, coupon.date());
                a.fixedResetDates.set(i, coupon.accrualStartDate());
                a.fixedCoupons.set(i, coupon.amount());
            }

            final Leg floatingCoupons = floatingLeg();

            a.floatingResetDates = new ArrayList<Date>(floatingCoupons.size());
View Full Code Here

Examples of org.jquantlib.cashflow.FixedRateCoupon.amount()

                a.floatingFixingDates.set(i, coupon.fixingDate());
                a.floatingAccrualTimes.set(i, coupon.accrualPeriod());
                a.floatingSpreads.set(i, coupon.spread());
                try {
                    a.floatingCoupons.set(i, coupon.amount());
                } catch (final Exception e) {
                    a.floatingCoupons.set(i, Constants.NULL_REAL);
                }
            }
        }
View Full Code Here

Examples of org.jquantlib.cashflow.FixedRateCoupon.amount()

            for (int i=0; i<fixedCoupons.size(); i++) {
                final FixedRateCoupon coupon = (FixedRateCoupon) fixedCoupons.get(i);
                a.fixedPayDates.set(i, coupon.date());
                a.fixedResetDates.set(i, coupon.accrualStartDate());
                a.fixedCoupons.set(i, coupon.amount());
            }

            final Leg floatingCoupons = floatingLeg();

            a.floatingResetDates = new ArrayList<Date>(floatingCoupons.size());
View Full Code Here

Examples of org.jquantlib.cashflow.FixedRateCoupon.amount()

                a.floatingFixingDates.set(i, coupon.fixingDate());
                a.floatingAccrualTimes.set(i, coupon.accrualPeriod());
                a.floatingSpreads.set(i, coupon.spread());
                try {
                    a.floatingCoupons.set(i, coupon.amount());
                } catch (final Exception e) {
                    a.floatingCoupons.set(i, Constants.NULL_REAL);
                }
            }
        }
View Full Code Here

Examples of org.jquantlib.cashflow.IborCoupon.amount()

                a.floatingFixingDates.set(i, coupon.fixingDate());
                a.floatingAccrualTimes.set(i, coupon.accrualPeriod());
                a.floatingSpreads.set(i, coupon.spread());
                try {
                    a.floatingCoupons.set(i, coupon.amount());
                } catch (final Exception e) {
                    a.floatingCoupons.set(i, Constants.NULL_REAL);
                }
            }
        }
View Full Code Here

Examples of org.jquantlib.cashflow.IborCoupon.amount()

                a.floatingFixingDates.set(i, coupon.fixingDate());
                a.floatingAccrualTimes.set(i, coupon.accrualPeriod());
                a.floatingSpreads.set(i, coupon.spread());
                try {
                    a.floatingCoupons.set(i, coupon.amount());
                } catch (final Exception e) {
                    a.floatingCoupons.set(i, Constants.NULL_REAL);
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.