Package org.jquantlib.math.interpolations.factories

Examples of org.jquantlib.math.interpolations.factories.Linear


                        if (ts.interpolator().global()) {
                            throw new LibraryException("no chance to fix it in a later iteration");
                        }

                        // otherwise, if the target interpolation is not usable yet
                        ts.setInterpolation(new Linear().interpolate (new Array(times, i+1), new Array(data)));
                    }
                }
                // required because we just changed the data
                // is it really required?
                ts.interpolation().update();
View Full Code Here


        final RateHelper[] instruments = null;
        final DayCounter dc = new DayCounter();
        final Handle<Quote> jumps[] = null;
        final Date[] jumpDates = null;
        final double accuracy = 0;
        final org.jquantlib.math.interpolations.Interpolation.Interpolator i = new Linear();
        final org.jquantlib.termstructures.Bootstrap b = new IterativeBootstrap(PiecewiseYieldCurve.class);


        final PiecewiseYieldCurve<Discount, Linear, IterativeBootstrap> pyc = new PiecewiseYieldCurve<Discount, Linear, IterativeBootstrap>(
                d, instruments, dc, jumps, jumpDates, accuracy, i, b) { /* anonymous */ };
View Full Code Here

            variances.set(j, value);
            QL.require(variances.get(j)>=variances.get(j-1) || !forceMonotoneVariance , "variance must be non-decreasing"); // QA:[RG]::verified // TODO: message
        }

        // default: linear interpolation
        factory = new Linear();
    }
View Full Code Here

    //
    // public constructors
    //

    public LogLinearInterpolation(final Array vx, final Array vy) {
        super.impl = new AbstractInterpolation.LogInterpolationImpl(vx, vy, new Linear());
        super.impl.update();
    }
View Full Code Here

            variances.set(j, value);
            QL.require(variances.get(j)>=variances.get(j-1) || !forceMonotoneVariance , "variance must be non-decreasing"); // TODO: message
        }

        // default: linear interpolation
        factory = new Linear();
    }
View Full Code Here

                        if (ts.interpolator().global()) {
                            throw new LibraryException("no chance to fix it in a later iteration");
                        }

                        // otherwise, if the target interpolation is not usable yet
                        ts.setInterpolation(new Linear().interpolate (new Array(times, i+1), new Array(data)));
                    }
                }
                // required because we just changed the data
                // is it really required?
                ts.interpolation().update();
View Full Code Here

  @BeforeClass
  public static void setUpLinearInterpolation(){
    QL.info("::::: Testing use of interpolations as functors... :::::");

    interpolation = new Linear().interpolate(x, y);
    interpolation.update();
      length = x2.size();
      y2 = new double[length];
      tolerance = 1.0e-12;
  }
View Full Code Here

TOP

Related Classes of org.jquantlib.math.interpolations.factories.Linear

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.