Package com.opengamma.timeseries.DoubleTimeSeriesOperators

Examples of com.opengamma.timeseries.DoubleTimeSeriesOperators.UnaryOperator


  protected HistoricalTimeSeries applyOverride(final FunctionExecutionContext context, final OverrideOperation operation, final String field, final ExternalIdBundle identifiers,
      final HistoricalTimeSeries value) {
    final ValueRequirement requirement = createRequirement(context, field, identifiers);
    s_logger.debug("Synthetic requirement {} on {}", requirement, value);
    return new SimpleHistoricalTimeSeries(value.getUniqueId(), value.getTimeSeries().operate(new UnaryOperator() {
      @Override
      public double operate(final double a) {
        return (Double) operation.apply(requirement, a);
      }
    }));
View Full Code Here

TOP

Related Classes of com.opengamma.timeseries.DoubleTimeSeriesOperators.UnaryOperator

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.