Java List Last Item getLastDateFromTimeSeriesDeltas(Double xAxisStart, List xAxisDeltas)

Here you can find the source of getLastDateFromTimeSeriesDeltas(Double xAxisStart, List xAxisDeltas)

Description

get Last Date From Time Series Deltas

License

Open Source License

Parameter

Parameter Description
xAxisStart -
xAxisDeltas -

Return

-

Declaration

public static Double getLastDateFromTimeSeriesDeltas(Double xAxisStart, List<Double> xAxisDeltas) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    /**//from ww  w . j a  va  2 s.  c  o  m
     * @param xAxisStart -
     * @param xAxisDeltas -
     * @return -
     */
    public static Double getLastDateFromTimeSeriesDeltas(Double xAxisStart, List<Double> xAxisDeltas) {
        Double ret = xAxisStart;

        for (Double delta : xAxisDeltas) {
            ret += delta;
        }

        return ret;
    }
}

Related

  1. getLast(List list)
  2. getLast(List list)
  3. getLast(List source)
  4. getLast(List list)
  5. getLastBefore(List list)
  6. getLastElement(List list)
  7. getLastNameIndex(List list)
  8. getLastNonNullIndex(final List list)
  9. getLastOrNull(List l)