All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opengamma.strata.math.impl.integration.Integrator Maven / Gradle / Ivy

There is a newer version: 2.12.46
Show newest version
/*
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.strata.math.impl.integration;

import java.util.function.Function;

/**
 * Interface for integration. The function to be integrated can be multi-dimensional. The result
 * of the integration does not have to be the same type as the integration bounds.
 * 
 * @param  Type of the function output and result
 * @param  Type of the integration bounds
 * @param  Type of the function to be integrated (e.g. {@link Function},
 */
public interface Integrator {

  /**
   * @param f The function to be integrated, not null
   * @param lower The array of lower bounds of integration, not null or empty
   * @param upper The array of upper bounds of integration, not null or empty 
   * @return The result of the integral
   */
  public abstract T integrate(V f, U[] lower, U[] upper);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy