Package com.opengamma.timeseries.date.localdate

Examples of com.opengamma.timeseries.date.localdate.LocalDateDoubleEntryIterator.currentValue()


    final double[] rejectedData = new double[n];
    final LocalDateDoubleEntryIterator it = ts.iterator();
    int i = 0, j = 0;
    while (it.hasNext()) {
      int date = it.nextTimeFast();
      double value = it.currentValue();
      if (value < 0) {
        rejectedDates[j] = date;
        rejectedData[j++] = value;
      } else {
        filteredDates[i] = date;
View Full Code Here


    final int[] rejectedDates = new int[n];
    final double[] rejectedData = new double[n];
   
    LocalDateDoubleEntryIterator it = ts.iterator();
    int firstDate = it.nextTimeFast();
    double firstValue = it.currentValue();
    int secondDate = 0;
    double secondValue = 0;
    int i = 0, j = 0;
    // handle most pairs
    while (it.hasNext()) {
View Full Code Here

    double secondValue = 0;
    int i = 0, j = 0;
    // handle most pairs
    while (it.hasNext()) {
      secondDate = it.nextTimeFast();
      secondValue = it.currentValue();
      if (Math.abs(firstValue / secondValue - 1) < _maxPercentageMove) {
        filteredDates[i] = firstDate;
        filteredData[i++] = firstValue;
      } else {
        rejectedDates[j] = firstDate;
View Full Code Here

    final double[] rejectedData = new double[n];
    final LocalDateDoubleEntryIterator it = ts.iterator();
    int i = 0, j = 0;
    while (it.hasNext()) {
      int date = it.nextTimeFast();
      double value = it.currentValue();
      if (value > _maxValue || value < _minValue) {
        rejectedDates[j] = date;
        rejectedData[j++] = value;
      } else {
        filteredDates[i] = date;
View Full Code Here

    final double[] rejectedData = new double[n];
    final LocalDateDoubleEntryIterator it = ts.iterator();
    int i = 0, j = 0;
    while (it.hasNext()) {
      int date = it.nextTimeFast();
      double value = it.currentValue();
      if (Math.abs(value - mean) > _standardDeviations * std) {
        rejectedDates[j] = date;
        rejectedData[j++] = value;
      } else {
        filteredDates[i] = date;
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.