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

com.opengamma.strata.math.impl.integration.QuadratureWeightAndAbscissaFunction 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 com.opengamma.strata.math.impl.function.special.OrthogonalPolynomialFunctionGenerator;

/**
 * Interface for classes that generate weights and abscissas for use in Gaussian quadrature. The abscissas are the roots
 * of an orthogonal polynomial {@link OrthogonalPolynomialFunctionGenerator}.
 */
public interface QuadratureWeightAndAbscissaFunction {

  /**
   * @param n The number of weights and abscissas to generate, not negative or zero
   * @return An object containing the weights and abscissas
   */
  public abstract GaussianQuadratureData generate(int n);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy