Package org.jquantlib.math

Examples of org.jquantlib.math.TransformedGrid.grid()


        QL.info("Testing transformed grid construction...");

        final PlusOne p1 = new PlusOne();
        final Array grid = Grid.BoundedGrid(0, 100, 100);
        final TransformedGrid tg = new TransformedGrid(grid, p1);
        if (Math.abs(tg.grid(0) - 0.0) > 1e-5) {
            fail("grid creation failed");
        }

        if (Math.abs(tg.transformedGrid(0) - 1.0) > 1e-5) {
            fail("grid transformation failed");
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.