Package org.jquantlib.math

Examples of org.jquantlib.math.TransformedGrid


        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

Related Classes of org.jquantlib.math.TransformedGrid

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.